Part Number Hot Search : 
5N120 109C1XAH AX773EP 39A126 KP464 2402A LT1724IS ASI10546
Product Description
Full Text Search
 

To Download M37212M6-XXXSP Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  description the m37212m4-xxxsp, M37212M6-XXXSP/fp are single-chip mi- crocomputers designed with cmos silicon gate technology. it is housed in a 52-pin shrink plastic molded dip or a 80-pin plastic molded qfp. in addition to their simple instruction sets, the rom, ram and i/o addresses are placed on the same memory map to enable easy pro- gramming. the M37212M6-XXXSP/fp has a pwm output function and a osd display function, so it is useful for a channel selection system for tv. the feature of the m37212ef-xxxsp/fp and the m37212efsp/fp are similar to those of the M37212M6-XXXSP/fp except that these chips have a built-in prom which can be written electrically. the differences between the M37212M6-XXXSP/fp and m37212m4- xxxsp are the rom size and the ram size as shown below. ac- cordingly, the following descriptions will be for M37212M6-XXXSP/ fp unless otherwise noted. features ? number of basic instructions ..................................................... 71 ? memory size rom...............16 k bytes (m37212m4-xxxsp) 24 k bytes (M37212M6-XXXSP/fp) 62 k bytes (m37212ef-xxxsp/fp, m37212efsp/fp) ram................. 320 bytes (m37212m4-xxxsp) 384 bytes (M37212M6-XXXSP/fp) 1216 bytes (m37212ef-xxxsp/fp, m37212efsp/fp) rom for display............................................8 k bytes ram for display............................................96 bytes pin configuration (top view) outline 52p4b type name m37212m4-xxxsp M37212M6-XXXSP/fp m37212ef-xxxsp/fp m37212efsp/fp ? the minimum instruction execution time .......................................... 0.5 m s (at 8 mhz oscillation frequency) ? power source voltage .................................................. 5 v 10 % ? power dissipation ............................................................. 165 mw (at 8 mhz oscillation frequency, v cc =5.5v, at crt display) ? subroutine nesting....maximum 96 levels (m37212m4-xxxsp, M37212M6-XXXSP/fp) maximum 128 levels (m37212ef-xxxsp/fp, m37212efsp/fp) ? interrupts ....................................................... 14 types, 14 vectors ? 8-bit timers .................................................................................. 4 ? programmable i/o ports (ports p0, p1 0 Cp1 4 , p2, p3 0 , p3 1, p 4 0, p 4 1 ) .............................. 25 ? input ports (ports p1 5 -p1 7 , p3 2 -p3 7 , p4 2 ) ................................ 10 ? output ports (ports p5 2 Cp5 5, p6 0 Cp6 3 ) ...................................... 8 ? 12 v withstand ports .................................................................. 12 ? led drive ports ........................................................................... 4 ? serial i/o ............................................................ 8-bit 5 1 channel 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 p4 1 /s clk /a-d6 x out h sync v sync p6 0 /pwm0 p6 1 /pwm1 p6 2 /pwm2 p6 3 /pwm3 p0 0 /pwm4 p0 1 /pwm5 p4 0 /s out(/in) /a-d7 d-a p3 5 /int2/a-d4 p3 4 /int1 p3 3 /tim3 p3 2 /tim2 p2 4 p2 5 cnv ss x in v ss p5 2 /r p5 3 /g p5 4 /b p5 5 /out1 p2 0 p2 1 p2 2 p1 0 /out2/a-d8 p1 1 /scl1 p1 2 /scl2 p1 3 /sda1 p1 4 /sda2 p1 5 /int3/a-d1 p1 6 /a-d2 p3 0 p3 1 reset osc1/p3 6 osc2/p3 7 v cc p1 7 /a-d3 p0 2 /pwm6 p0 3 /pwm7 p4 2 /s in /a-d5 p2 6 p2 7 p2 3 p0 4 p0 5 p0 6 p0 7 22 23 24 25 26 31 30 29 28 27 M37212M6-XXXSP, m37212ef-xxxsp m37212m4-xxxsp, m37212efsp ram size 320 bytes 384 bytes 1216 bytes 1216 bytes rom size 16k bytes 24k bytes 62k bytes 62k bytes ? multi-master i 2 c-bus interface ............................... 1 (2 systems) ? a-d comparator (6-bit resolution) ................................ 8 channels ? pwm output circuit ......................................... 14-bit 5 1, 8-bit 5 8 ? crt display function number of display characters ................ 24 characters 5 2 lines (16 lines maximum) kinds of characters ..................................................... 256 kinds dot structure .......................................................... 12 5 16 dots kinds of character sizes .................................................. 3 kinds kinds of character colors (it can be specified by the character) maximum 7 kinds (r, g, b) kinds of character background colors (it can be specified by the character) maximum 7 kinds (r, g, b) kinds of raster colors (maximum 7 kinds) display position horizontal .................................................................. 64 levels vertical .................................................................... 128 levels bordering (horizontal and vertical) application tv mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 2 pin configuration (top view) outline 80p6n-a nc : unconnected p0 7 p1 0 /out2/a-d8 p1 1 /scl1 p1 2 /scl2 p1 3 /sda1 p1 4 /sda2 p1 5 /int3/a-d1 p1 6 /a-d2 p3 0 p3 1 reset osc1/p3 6 osc2/p3 7 v cc p1 7 /a-d3 h sync v sync p6 0 /pwm0 p6 1 /pwm1 p6 2 /pwm2 p6 3 /pwm3 p0 0 /pwm4 p0 1 /pwm5 p0 2 /pwm6 p0 3 /pwm7 x out v ss p4 1 /s clk /a-d6 p4 0 /s out(/in) /a-d7 d-a p3 5 /int2/a-d4 p3 4 /int1 p3 3 /tim3 p3 2 /tim2 p2 4 p2 5 p4 2 /s in /a-d5 cnv ss x in p2 6 p2 7 p5 2 /r p5 3 /g p5 4 /b p5 5 /out1 p2 0 p2 1 p2 2 p2 3 p0 4 p0 5 p0 6 nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc nc 55 43 28 40 39 37 38 36 35 34 32 31 29 27 26 25 51 41 44 45 46 47 48 50 58 52 59 57 56 60 61 63 62 42 49 8 1 2 3 4 5 6 7 9 10 11 12 13 14 15 16 17 18 19 20 24 23 22 21 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 64 54 53 m37212m6-xxxfp m37212ef-xxxfp, m37212effp 33 30
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 3 48 out1 clock input clock output x in x out reset input v cc v ss cnv ss clock output for display input ports p3 6, p3 7 osc1 osc2 clock input for display int2 int1 p5 (4) b g r h sync v sync a-d comparator 14-bit pwm circuit 8-bit pwm circuit accumulator a (8) timer 4 t4 (8) timer 3 t3 (8) timer 2 t2 (8) timer 1 t1 (8) timer count source selection circuit tim2 tim3 instruction register (8) instruction decoder control signal crt circuit stack pointer s (8) index register y (8) index register x (8) processor status register ps (8) 8-bit arithmetic and logical unit rom 24 k bytes program counter pc l (8) program counter pc h (8) ram 384 bytes data bus clock generating circuit reset output ports p5 2 Cp5 5 address bus si/o(8) s in s clk s out(/in) int3 41 42 43 44 10 9 8 7 i/o port p0 33 34 35 36 37 38 39 40 p1 (8) i/o ports p1 0 Cp1 4 p2 (8) i/o port p2 i/o ports p3 0 , p3 1 18 31 32 14 p3 (6) multi-master i c-bus interface p0 (8) sda scl 49 50 51 52 2 1 25 24 30 27 26 23 29 28 ( ) timing output out2 d-a 2 15 16 17 p4 (3) 11 12 13 pwm5 pwm4 pwm3 pwm2 pwm1 pwm0 pwm7 pwm6 input ports p1 5 Cp1 7 input ports p3 2 Cp3 5 p6 (4) output ports p6 0 Cp6 3 6 5 4 3 notes 1: m37212m4-xxxsp has a 320-byte ram. m37212ef-xxxsp/fp, m37212efsp/fp has a 1216-byte ram. 2: m37212m4-xxxsp has a 16 k byte rom. m37212ef-xxxsp/fp, m37212efsp/fp has a 62 k byte rom. i/o ports p4 0 , p4 1 input port p4 2 22 21 20 19 45 46 47 functional block diagram of M37212M6-XXXSP
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 4 number of basic instructions instruction execution time clock frequency memory size input/output ports serial i/o multi-master i 2 c-bus interface a-d comparator pwm output circuit timers subroutine nesting interrupt clock generating circuit power source voltage power dissipation operating temperature range device structure package crt display function functions rom ram crt rom crt ram p0 p1 0 p1 1 Cp1 4 p1 5 Cp1 7 p2 0 Cp2 7 p3 0 , p3 1 p3 2 Cp3 7 p4 0 , p4 1 p4 2 p5 2 Cp5 5 p6 0 Cp6 3 crt on crt off in stop mode 71 0.5 m s (the minimum instruction execution time, at 8 mhz oscillation fre- quency) 8 mhz (maximum) 24 k bytes 384 bytes 8 k bytes 96 bytes 8-bit 5 1 (n-channel open-drain output structure, can be used as pwm output pins) 1-bit 5 1 (cmos input/output structure, can be used as crt output pin, a-d input pin) 4-bit 5 1 (cmos input/output or n-channel open-drain output structure, can be used as multi-master i 2 c-bus interface) 3-bit 5 1 (can be used as int input pin, a-d input pins) 8-bit 5 1 (cmos input/output structure) 2-bit 5 1 (cmos input/output structure) 6-bit 5 1 (can be used as external clock input pins, int input pins, crt display clock i/o pins, a-d input pins) 2-bit 5 1 (n-channel open-drain output structure, can be used as serial i/o pins, a-d input pins) 1-bit 5 1(can be used as serial input pin, a-d input pin) 4-bit 5 1 (cmos output structure, can be used as crt output pins) 4-bit 5 1(n-channel open-drain output structure, can be used as pwm output pins) 8-bit 5 1 1 (2 systems) 8 channels (6-bit resolution) 14-bit 5 1, 8-bit 5 8 8-bit timer 5 4 96 levels (maximum) external interrupt 5 3, internal timer interrupt 5 4, serial i/o interrupt 5 1, crt interrupt 5 1, multi-master i 2 c-bus interface interrupt 5 1, f(x in )/4096 interrupt 5 1, v sync interrupt 5 1, brk interrupt 5 1 2 built-in circuits (externally connected a ceramic resonator or a quartz- crystal oscillator) 5 v 10 % 165 mw typ. (at oscillation frequency f cpu = 8 mhz, f crt = 8 mhz) 110 mw typ. (at oscillation frequency f cpu = 8 mhz) 1.65 mw (maximum) C10 c to 70 c cmos silicon gate process 52-pin shrink plastic molded dip 80-pin plastic molded qfp 24 characters 5 2 lines (maximum 16 lines by software) 12 5 16 dots 256 kinds 3 kinds maximum 7 kinds (r, g, b); can be specified by character 64 levels (horizontal) 5 128 levels (vertical) parameter functions i/o i/o i/o input i/o i/o input i/o input output output number of display characters dot structure kinds of characters kinds of character sizes kinds of character colors display position (horizontal, vertical) m37212m4-xxxsp, M37212M6-XXXSP, m37212ef-xxxsp, m37212efsp m37212m6-xxxfp, m37212ef-xxxfp, m37212effp
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 5 pin description input input output i/o output i/o output i/o input input input input i/o i/o input input input input input output apply voltage of 5 v 10 % to (typical) v cc , and 0 v to v ss . this is connected to v ss . to enter the reset state, the reset input pin must be kept at a l for 2 m s or more (under normal v cc conditions). if more time is needed for the quartz-crystal oscillator to stabilize, this l condition should be maintained for the required time. this chip has an internal clock generating circuit. to control generating frequency, an external ceramic resonator or a quartz-crystal oscillator is connected between pins x in and x out . if an external clock is used, the clock source should be connected to the x in pin and the x out pin should be left open. port p0 is an 8-bit i/o port with direction register allowing each i/o bit to be individually programmed as input or output. at reset, this port is set to input mode. the output structure is n-channel open-drain output. the note out of this table gives a full of port p0 function. pins p0 0 Cp0 3 are also used as pwm output pins pwm4Cpwm7 respectively. the output structure is n-channel open-drain output. port p1 0 Cp1 4 are a 5-bit i/o port and has basically the same functions as port p0. the output structure is cmos output. pins p1 0 is also used as crt output pin out2. the output structure is cmos output. pins p1 1 Cp1 4 are used as scl1, scl2, sda1 and sda2 respectively, when multi-master i 2 c-bus interface is used. the output structure is n-channel open-drain output. pins p1 0 are also used as analog input pin a-d8. port p1 5 Cp1 7 are a 3-bit input port and has basically the same functions as port p0. pins p1 5 Cp1 7 are also used as analog input pins a-d1 to a-d3 respectively. p1 5 pin is also used as external interrupt input pin int3. port p2 is an 8-bit i/o port and has basically the same functions as port p0. the output structure is cmos output. ports p3 0 , p3 1 are a 2-bit i/o port and has basically the same functions as port p0. the output structure is cmos output. ports p3 2 Cp3 7 are a 6-bit input port and has basically the same functions as port p0. pins p3 2 , p3 2 are also used as external clock input pins tim2, tim3 respectively. pins p3 4 , p3 5 are also used as external interrupt input pins int1, int2 respectively. pins p3 5 is also used as analog input pin a-d4. p3 6 pin is also used as crt display clock input pin osc1. p3 7 pin is also used as crt display clock output pin osc2. the output structure is cmos output. pin name name input/ output power source cnv ss reset input clock input clock output i/o port p0 pwm output i/o port p1 crt output multi-master i 2 c-bus interface analog input input port p1 analog input external interrupt input i/o port p2 i/o port p3 input port p3 external clock input external interrupt input analog input clock input for crt display clock output for crt display v cc , v ss. cnv ss _____ reset x in x out p0 0 /pwm4C p0 3 /pwm7, p0 4 Cp0 7 p1 0 /out2/ a-d8, p1 1 /scl1, p1 2 /scl2, p1 3 /sda1, p1 4 /sda2, p1 5 /int3/ a-d1, p1 6 /a-d2, p1 7 /a-d3 p2 0 Cp2 7 p3 0 , p3 1 p3 2 /tim2, p3 3 /tim3, p3 4 /int1, p3 5 /int2/ a-d4, p3 6 /osc1, p3 7 /osc2
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 6 i/o port p4 serial i/o data input/output serial i/o synchro- nizing clock input/ output analog input pin input port p4 serial i/o data input analog input output port p5 crt output output port p6 pwm output h sync input v sync input da output pin description (continued) ports p4 0 , p4 1 are a 2-bit i/o port and has basically the same functions as port p0. the output structure is n-channel open-drain output. pin p4 0 is also used as serial i/o data input/output pin s out(/in) . the output structure is n- channel open-drain output. pin p4 1 is also used as serial i/o synchronizing clock input/output pin s clk . the output structure is n-channel open-drain output. pin p4 0 , p4 1 are also used as analog input pins a-d7, a-d6 respectively. port p4 2 is a 1-bit input port and has basically the same functions as port p0. pin p4 2 is also used as serial i/o data input pin s in . pin p4 2 is also used as analog input pin a-d5. ports p5 2 Cp5 5 are a 4-bit output port and has basically the same functions as port p0. the output structure is cmos output. pins p5 2 Cp5 5 are also used as crt output pins r, g, b, out1 respectively. the output structure is cmos output. ports p6 0 Cp6 3 are a 4-bit i/o port and has basically the same functions as port p0. the output structure is n-channel open-drain output. pins p6 0 Cp6 3 are also used as pwm output pins pwm0Cpwm3 respectively. the output structure is n-channel open-drain output. this is a horizontal synchronizing signal input for crt. this is a vertical synchronizing signal input for crt. this is a 14-bit pwm output pin. i/o i/o i/o input input input input output output output output input input output p4 0 /s out(/in) / a-d7, p4 1 /s clk / a-d6, p4 2 /s in / a-d5, p5 2 /r, p5 3 /g, p5 4 /b, p5 5 /out1 p6 0 pwm0C p6 3 /pwm3 h sync v sync d-a note : as shown in the memory map (figure 3), port p0 is accessed as a memory at address 00c0 16 of zero page. port p0 has the port p0 direction register (address 00c1 16 of zero page) which can be used to program each bit as an input (0) or an output (1). the pins programmed as 1 in the direction register are output pins. when pins are programmed as 0, they are input pins. when pins are programmed as output pins, the output data are written into the port latch and then output. when data is read from the output pins, the output pin level is not read but the data of the port latch is read. this allows a previously-output value to be read correctly even if the output l voltage has risen, for example, because a light emitting diode was directly driven. the input pins are in the floating state, so the values of the pins can be read. when data is written into the input pin, it is written only into the port latch, while the pin remains in the floating state.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 7 functional description central processing unit (cpu) the M37212M6-XXXSP/fp uses the standard 740 family instruction set. refer to the table of 740 family addressing modes and machine instructions or the series 740 users manual for de- tails on the instruction set. machine-resident 740 family instructions are as follows: the fst, slw instruction cannot be used. the mul, div, wit and stp instruction can be used. cpu mode register the cpu mode register contains the stack page selection bit. the cpu mode register is allocated at address 00fb 16 . fig. 1. structure of cpu mode register 70 11111 0 0 cpu mode register (cpum : address 00fb 16 ) fix these bits to ?. stack page selection bit (note) 0 : zero page 1 : 1 page fix these bits to ?. note : please beware of this bit when programming because it is set to ??after the reset release.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 8 memory special function register (sfr) area the special function register (sfr) area in the zero page contains control registers such as i/o ports and timers. ram ram is used for data storage and for stack area of subroutine calls and interrupts. rom rom is used for storing user programs as well as the interrupt vector area. ram for display ram for display is used for specifying the character codes and col- ors to display. rom for display rom for display is used for storing character data. interrupt vector area the interrupt vector area contains reset and interrupt vectors. zero page the 256 bytes from addresses 0000 16 to 00ff 16 are called the zero page area. the internal ram and the special function registers (sfr) are allocated to this area. the zero page addressing mode can be used to specify memory and register addresses in the zero page area. access to this area with only 2 bytes is possible in the zero page addressing mode. special page the 256 bytes from addresses ff00 16 to ffff 16 are called the spe- cial page area. the special page addressing mode can be used to specify memory addresses in the special page area. access to this area with only 2 bytes is possible in the special page addressing mode. 0000 16 00c0 16 00ff 16 017f 16 06b7 16 a000 16 sfr area not used not used ffff 16 ffde 16 ff00 16 0600 16 interrupt vector area not used 10000 16 11fff 16 1ffff 16 zero page rom for display (8 k bytes) special page rom (16 k bytes) for m37212m4 ram for display (note) (96 bytes) ram (320 bytes) for m37212m4 01bf 16 ram (384 bytes) for m37212m6 c000 16 rom (24 k bytes) for m37212m6 note: refer to table 11. contents of crt display ram. 01ff 16 ram (1216 bytes) for m37212ef 0800 16 rom (62 k bytes) for m37212ef 0300 16 05ff 16 fig. 2. memory map
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 9 fig. 3. memory map of special function register (sfr) note: for m37212ef-xxxsp/fp and m37212efsp/fp, fix the bits 1 and 0 at addres 021b 16 to 0 (at reset, these bits are fixed to 0). ?^?c?} 1 ?^?c?} 4 ?^?c?} 3 ?^?c?} 2 pwm5 00c0 16 00c1 16 00c2 16 00c3 16 00c4 16 00c5 16 00c6 16 00c7 16 00c8 16 00c9 16 00ca 16 00cb 16 00cc 16 00cd 16 00ce 16 00cf 16 00d0 16 00d1 16 00d2 16 00d3 16 00d4 16 00d5 16 00d6 16 00d7 16 00d8 16 00d9 16 00da 16 00db 16 00dc 16 00dd 16 00de 16 00df 16 port p0 port p0 direction register port p3 direction register port p3 port p2 direction register port p2 port p1 direction register port p1 port p5 port p5 direction register da-h register da-l register pwm0 register pwm output control register 2 pwm output control register 1 pwm4 register pwm3 register pwm2 register pwm1 register i c control register i c status register i c clock control register serial i/o mode register serial i/o register i c data shift register i c address register 00e0 16 00e1 16 00e2 16 00e3 16 00e4 16 00e5 16 00e6 16 00e7 16 00e8 16 00e9 16 00ea 16 00eb 16 00ec 16 00ed 16 00ee 16 00ef 16 00f0 16 00f1 16 00f2 16 00f3 16 00f4 16 00f5 16 00f6 16 00f7 16 00f8 16 00f9 16 00fa 16 00fb 16 00fc 16 00fd 16 00fe 16 00ff 16 horizontal position register vertical position register 1 vertical position register 2 character size register border selection register color register 0 color register 3 color register 2 color register 1 crt control register crt port control register crt clock selection register a-d mode register a-d control register timer 34 mode register timer 12 mode register interrupt request register 1 interrupt control register 2 interrupt control register 1 interrupt request register 2 cpu mode register timer 1 timer 2 timer 3 timer 4 pwm5 register 2 2 2 2 2 port p4 port p4 direction register port p6 pwm6 register pwm7 register interrupt input polarity register
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 10 interrupts interrupts can be caused by 14 different sources consisting of 4 ex- ternal, 8 internal, 1 software, and reset. interrupts are vectored inter- rupts with priorities shown in table 1. reset is also included in the table because its operation is similar to an interrupt. when an interrupt is accepted, (1) the contents of the program counter and processor status register are automatically stored into the stack. (2) the interrupt disable flag i is set to 1 and the corresponding interrupt request bit is set to 0. (3) the jump destination address stored in the vector address enters the program counter. other interrupts are disabled when the interrupt disable flag is set to 1. all interrupts except the brk instruction interrupt have an interrupt request bit and an interrupt enable bit. the interrupt request bits are in interrupt request registers 1 and 2 and the interrupt enable bits are in interrupt control registers 1 and 2. figure 4 shows the structure of the interrupt-related registers. interrupts other than the brk instruction interrupt and reset are ac- cepted when the interrupt enable bit is 1, interrupt request bit is 1, and the interrupt disable flag is 0. the interrupt request bit can be set to 0 by a program, but not set to 1. the interrupt enable bit can be set to 0 and 1 by a program. reset is treated as a non-maskable interrupt with the highest priority. figure 5 shows interrupt control. interrupt causes (1) v sync and crt interrupts the v sync interrupt is an interrupt request synchronized with the vertical sync signal. the crt interrupt occurs after character block display to the crt is completed. (2) int1, int2, int3 interrupts with an external interrupt input, the system detects that the level of a pin changes from l to h or from h to l, and generates an interrupt request. the input active edge can be selected by bits 3, 4 and 5 of the interrupt input polarity register (address 00f9 16 ) : when this bit is 0, a change from l to h is de- tected; when it is 1, a change from h to l is detected. note that all bits are cleared to 0 at reset. (3) timer 1, 2, 3 and 4 interrupts an interrupt is generated by an overflow of timer 1, 2, 3 or 4. (4) serial i/o interrupt this is an interrupt request from the clock synchronous serial i/o function. (5) f(x in )/4096 interrupt this interrupt occurs regularly with a f(x in )/4096 period. set bit 0 of the pwm output control register 1 to 0. (6) multi-master i 2 c-bus interface interrupt this is an interrupt request related to the multimaster i 2 c-bus interface. (7) brk instruction interrupt this software interrupt has the least significant priority. it does not have a corresponding interrupt enable bit, and it is not af- fected by the interrupt disable flag i (non-maskable). priority 1 2 3 4 5 6 7 8 9 10 11 12 13 14 vector addresses ffff 16 , fffe 16 fffd 16 , fffc 16 fffb 16 , fffa 16 fff9 16 , fff8 16 fff5 16 , fff4 16 fff3 16 , fff2 16 fff1 16 , fff0 16 ffef 16 , ffee 16 ffed 16 , ffec 16 ffeb 16 , ffea 16 ffe9 16 , ffe8 16 ffe7 16 , ffe6 16 ffe5 16 , ffe4 16 ffdf 16 , ffde 16 interrupt source reset crt interrupt int2 interrupt int1 interrupt timer 4 interrupt f(x in )/4096 interrupt v sync interrupt timer 3 interrupt timer 2 interrupt timer 1 interrupt serial i/o interrupt multi-master i 2 c-bus interface interrupt int3 interrupt brk instruction interrupt remarks non-maskable active edge selectable active edge selectable active edge selectable active edge selectable non-maskable (software interrupt) table 1. interrupt vector addresses and priority
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 11 fig. 4. structure of interrupt-related registers fix this bit to 0. int3 polarity switch bit 0 : positive polarity 1 : negative polarity interrupt input polarity register (re : address 00f9 16 ) fix this bit to 0. int1 polarity switch bit 0 : positive polarity 1 : negative polarity int2 polarity switch bit 0 : positive polarity 1 : negative polarity 7 0 00 interrupt request register 1 (ireq1 : address 00fc 16 ) 0 : no interrupt request issued 1 : interrupt request issued interrupt request register 2 (ireq2 : address 00fd 16 ) serial i/o interrupt request bit fix this bit to 0. 7 int1 interrupt request bit 0 int2 interrupt request bit f(x in )/4096 interrupt request bit 0 0 : interrupt disabled 1 : interrupt enabled serial i/o interrupt enable bit 7 interrupt control register 2 (icon2 : address 00ff 16 ) int1 interrupt enable bit 0 int2 interrupt enable bit fix this bit to 0. f(x in )/4096 interrupt enable bit 0 fix these bits to 0. 00 0 7 interrupt control register 1 (icon1 : address 00fe 16 ) timer 1 interrupt enable bit 0 timer 2 interrupt enable bit timer 3 interrupt enable bit timer 4 interrupt enable bit crt interrupt enable bit v sync interrupt enable bit int3 interrupt enable bit multi-master i 2 c-bus interface interrupt enable bit 7 timer 1 interrupt request bit 0 timer 2 interrupt request bit timer 3 interrupt request bit timer 4 interrupt request bit crt interrupt request bit v sync interrupt request bit int3 interrupt request bit multi-master i c-bus interface interrupt request bit 2
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 12 fig. 5. interrupt control interrupt request bit interrupt enable bit interrupt disable flag i brk instruction reset interrupt request
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 13 timers the M37212M6-XXXSP has 4 timers: timer 1, timer 2, timer 3, and timer 4. all timers are 8-bit timers with the 8-bit timer latch. the timer block diagram is shown in figure 7. all of the timers count down and their divide ratio is 1/(n+1), where n is the value of timer latch. the value is set to a timer at the same time by writing a count value to the corresponding timer latch (addresses 00f0 16 to 00f3 16 ). the count value is decremented by 1. the timer interrupt request bit is set to 1 by a timer overflow at the next count pulse after the count value reaches 00 16 . (1) timer 1 timer 1 can select one of the following count sources: ? f(x in )/16 ? f(x in )/4096 the count source of timer 1 is selected by setting bit 0 of the timer 12 mode register (address 00f4 16 ). timer 1 interrupt request occurs at timer 1 overflow. (2) timer 2 timer 2 can select one of the following count sources: ? f(x in )/16 ? timer 1 overflow signal ? external clock from the p3 2 /tim2 pin the count source of timer 2 is selected by setting bits 4 and 1 of the timer 12 mode register (address 00f4 16 ). when timer 1 overflow signal is a count source for the timer 2, the timer 1 functions as an 8- bit prescaler. timer 2 interrupt request occurs at timer 2 overflow. (3) timer 3 timer 3 can select one of the following count sources: ? f(x in )/16 ? external clock from the h sync pin ? external clock from the p3 3 /tim3 pin the count source of timer 3 is selected by setting bits 5 and 0 of the timer 34 mode register (address 00f5 16 ) timer 3 interrupt request occurs at timer 3 overflow. (4) timer 4 timer 4 can select one of the following count sources: ? f(x in )/16 ? f(x in )/2 ? timer 3 overflow signal the count source of timer 3 is selected by setting bits 4 and 1 of the timer 34 mode register (address 00f5 16 ). when timer 3 overflow signal is a count source for the timer 4, the timer 3 functions as an 8- bit prescaler. timer 4 interrupt request occurs at timer 4 overflow. at reset, timers 3 and 4 are connected by hardware and ff 16 is automatically set in timer 3; 07 16 in timer 4. the f(x in )/16 is se- lected as the timer 3 count source. the internal reset is released by timer 4 overflow at these state, the internal clock is connected. at execution of the stp instruction, timers 3 and 4 are connected by hardware and ff 16 is automatically set in timer 3; 07 16 in timer 4. however, the f(x in )/16 is not selected as the timer 3 count source. so set bit 0 of the timer 34 mode register (address 00f5 16 ) to 0 before the execution of the stp instruction (f(x in )/16 is selected as the timer 3 count source). the internal stp state is released by timer 4 overflow at these state, the internal clock is connected. because of this, the program starts with the stable clock. the structure of timer-related registers is shown in figure 6.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 14 fig. 6. structure of timer-related registers timer 2 count stop bit 0 : count start 1 : count stop 70 timer 12 mode register (t12m : address 00f4 16 ) timer 1 count source selection bit 0 : f(x in )/16 1 : f(x in )/4096 timer 2 count source selection bit 0 : internal clock 1 : external clock from p3 2 /tim2 pin timer 1 count stop bit 0 : count start 1 : count stop timer 2 internal count source selection bit 0 : f(x in )/16 1 : timer 1 overflow 70 timer 34 mode register (t34m : address 00f5 16 ) timer 3 count source selection bit 0 : f(x in )/16 1 : external clock timer 4 internal count source selection bit 0 : timer 3 overflow 1 : f(x in )/16 timer 3 count stop bit 0 : count start 1 : count stop timer 4 count stop bit 0 : count start 1 : count stop timer 4 count source selection bit 0 : internal clock 1 : f(x in )/2 timer 3 external count source selection bit 0 : external clock from p3 3 /tim3 pin 1 : external clock from h sync pin 0 fix this bit to ?.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 15 timer 1 (8) 1/4096 1/2 1/8 timer 1 latch (8) 8 8 8 t12m 0 t12m 2 t12m 4 t12m 1 t12m 3 timer 2 (8) timer 2 latch (8) 8 8 8 timer 3 (8) timer 3 latch (8) 8 8 8 timer 4 (8) timer 4 latch (8) 8 8 8 data bus timer 1 interrupt request timer 2 interrupt request t34m 0 t34m 2 t34m 5 t34m 4 t34m 3 t34m 1 x in p3 2 /tim2 p3 3 /tim3 selection gate : connected to black colored side at reset t12m : timer 12 mode register t34m : timer 34 mode register ff 16 07 16 h sync reset stp instruction timer 3 interrupt request timer 4 interrupt request notes 1: ??pulse width of external clock inputs tim2 and tim3 needs 4 machine cycles or more. 2: when the external clock source is selected, timers 2 and 3 are counted at a rising edge of input signal. 3: in the stop mode or the wait mode, external clock inputs tim2 and tim3 cannot be used. fig. 7. timer block diagram
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 16 serial i/o the M37212M6-XXXSP has a built-in serial i/o which can either trans- mit or receive 8-bit data in serial in the clock synchronous mode. the serial i/o block diagram is shown in figure 8. the synchronizing clock i/o pin (s clk ), and data i/o pins (s out , s in ) also function as port p4. bit 2 of the serial i/o mode register (address 00dc 16 ) selects whether the synchronizing clock is supplied internally or externally (from the p4 1 /s clk /a-d6 pin). when an internal clock is selected, bits 1 and 0 select whether f(x in ) is divided by 4, 16, 32, or 64. bit 3 selects whether port p4 is used for serial i/o or not. to use the p4 2 /s in /a-d5 pin as the s in pin, set the bit 2 of the port p4 direction register (address 00c9 16 ) to 0. the operation of the serial i/o function is described below. the func- tion of the serial i/o differs depending on the clock source; external clock or internal clock. fig. 8. serial i/o block diagram 8 serial i/o shift register (8) data bus serial i/o interrupt request selection gate : connected to black colored side at reset. synchronization circuit frequency divider 1/8 1/4 1/16 sm 1 sm 0 serial i/o counter (8) sm 5 : lsb msb s sm 2 1/2 sm 6 x in p4 2 /s in /a-d5 p4 0 /s out(/in) /a-d7 p4 1 /s clk /a-d6 1/2 sm 3 p4 0 latch p4 1 latch sm 3 (address 00dd 16 ) note : when the data is set in the serial i/o register (address 00dd 16 ), the register functions as the serial i/o shift register. sm : serial i/o mode register (note)
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 17 internal clockthe serial i/o counter is set to 7 during write cycle into the serial i/o register (address 00dd 16 ), and transfer clock goes h forcibly. at each falling edge of the transfer clock after the write cycle, serial data is output from the s out pin. transfer direction can be selected by bit 5 of the serial i/o mode register. at each rising edge of the transfer clock, data is input from the s in pin and data in the serial i/o register is shifted 1 bit. after the transfer clock has counted 8 times, the serial i/o counter becomes 0 and the transfer clock stops at h. at this time the inter- rupt request bit is set to 1. external clockwhen an external clock is selected as the clock source, the interrupt request is set to 1 after the transfer clock has counted 8 times. however, transfer operation does not stop, so con- trol the clock externally. use the external clock of 1mhz or less with a duty cycle of 50%. the serial i/o timing is shown in figure 10. when using an external clock for transfer, the external clock must be held at h for initializing the serial i/o counter. when switching between an internal clock and an external clock, do not switch during transfer. also, be sure to ini- tialize the serial i/o counter after switching. notes 1: on programming, note that the serial i/o counter is set by writing to the serial i/o register with the bit managing in- structions as seb and clb instructions. 2: when an external clock is used as the synchronizing clock, write transmit data to the serial i/o register at h of the transfer clock input level. fig. 9. structure of serial i/o mode register fig. 10. serial i/o timing (for lsb first) 7 serial i/o mode register (sm : address 00dc 16 ) internal synchronizing clock selection bits b1 b0 0 0 : f(x in )/4 0 1 : f(x in )/16 1 0 : f(x in )/32 1 1 : f(x in )/64 0 0 synchronizing clock selection bit 0 : external clock 1 : internal clock serial i/o port selection bit 0 : p4 0 , p4 1 functions as port 1 : s clk , s out fix this bit to 0. transfer direction selection bit 0 : lsb first 1 : msb first serial input pin selection bit 0 : input signal from s in pin 1 : input signal from s out pin synchroninzing clock transfer clock serial i/o register write signal serial i/o output s out d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 (note) serial i/o input s in note : when an internal clock is selected, the s out pin is at high-impedance after transfer is completed. interrupt request bit is set to 1
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 18 (1) serial i/o common transmission/reception mode by writing 1 to bit 6 of the serial i/o mode register, signals s in and s out are switched internally to be able to transmit or receive the serial data. figure 11 shows signals on serial i/o common transmission/recep- tion mode. note: when receiving the serial data after writing ff 16 to the serial i/o register. fig. 11. signals on serial i/o common transmission/reception mode serial i/o shift register (8) ? ? clock p4 1 /s clk /a-d6 p4 0 /s out(/in) /a-d7 p4 2 /s in /a-d5 sm 6 sm : serial i/o mode register
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 19 i c address register b7 b0 sad6 sad5 sad4 sad3 sad2 sad1 sad0 rbw noise elimination circuit serial data (sda) address comparator b7 i c data shift register b0 data control circuit i c clock control register system clock ( ) interrupt generating circuit interrupt request signal (iicirq) b7 mst trx bb pin al aas ad0 lrb b0 i c status register s1 b7 b0 bsel1 bsel0 10bit sad als bc2 bc1 bc0 s1d i c clock control register bit counter bb circuit clock control circuit noise elimination circuit serial clock (scl) b7 b0 ack ack bit fast mode ccr4 ccr3 ccr2 ccr1 ccr0 internal data bus clock division s 0 s2 s0d al circuit es0 2 2 2 2 2 function in conformity with philips i 2 c-bus standard: 10-bit addressing format 7-bit addressing format high-speed clock mode standard clock mode in conformity with philips i 2 c-bus standard: master transmission master reception slave transmission slave reception 16.1 khz to 400 khz (at f = 4 mhz) table 2. multi-master i 2 c-bus interface functions multi-master i 2 c-bus interface the multi-master i 2 c-bus interface is a circuit for serial communica- tions conformed with the philips i 2 c-bus data transfer format. this interface, having an arbitration lost detection function and a synchro- nous function, is useful for serial communications of the multi-mas- ter. figure 12 shows a block diagram of the multi-master i 2 c-bus inter- face and table 2 shows multi-master i 2 c-bus interface functions. this multi-master i 2 c-bus interface consists of the i 2 c address reg- ister, the i 2 c data shift register, the i 2 c clock control register, the i 2 c control register, the i 2 c status register and other control circuits. item format communication mode scl clock frequency f : system clock = f(x in )/2 note: we are not responsible for any third partys infringement of patent rights or other rights attributable to the use of the con- trol function (bits 6 and 7 of the i 2 c control register at address 00da 16 ) for connections between the i 2 c-bus interface and ports (scl1, scl2, sda1, sda2). fig. 12. block diagram of multimaster i 2 c-bus interface
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 20 (3) i 2 c clock control register the i 2 c clock control register (address 00db 16 ) is used to set ack control, scl mode and scl frequency. n bits 0 to 4: scl frequency control bits (ccr0Cccr4) these bits control the scl frequency. refer to table 3. n bit 5: scl mode specification bit (fast mode) this bit specifies the scl mode. when this bit is set to 0, the stan- dard clock mode is set. when the bit is set to 1, the high-speed clock mode is set. n bit 6: ack bit (ack bit) this bit sets the sda status when an ack clock ] is generated. when this bit is set to 0, the ack return mode is set and make sda l at the occurrence of an ack clock. when the bit is set to 1, the ack non-return mode is set. the sda is held in the h status at the oc- currence of an ack clock. however, when the slave address matches the address data in the reception of address data at ack bit = 0, the sda is automatically made l (ack is returned). if there is a mismatch between the slave address and the address data, the sda is automatically made h(ack is not returned). ] ack clock: clock for acknowledgement n bit 7: ack clock bit (ack) this bit specifies a mode of acknowledgment which is an acknowl- edgment response of data transmission. when this bit is set to 0, the no ack clock mode is set. in this case, no ack clock occurs after data transmission. when the bit is set to 1, the ack clock mode is set and the master generates an ack clock upon comple- tion of each 1-byte data transmission.the device for transmitting address data and control data releases the sda at the occurrence of an ack clock (make sda h) and receives the ack bit generated by the data receiving device. note: do not write data into the i 2 c clock control register during transmitting. if data is written during transmitting, the i 2 c clock generator is reset, so that data cannot be transmitted nor- mally. fig. 13. structure of i 2 c address register 70 sad6 sad5 sad4 sad3 sad2 sad1 sad0 rbw i c address register (s0d: address 00d8 16 ) slave address read/write bit 2 (1) i 2 c data shift register the i 2 c data shift register (s0 : address 00d7 16 ) is an 8-bit shift register to store receive data and write transmit data. when transmit data is written into this register, it is transferred to the outside from bit 7 in synchronization with the scl clock, and each time one-bit data is output, the data of this register are shifted one bit to the left. when data is received, it is input to this register from bit 0 in synchronization with the scl clock, and each time one-bit data is input, the data of this register are shifted one bit to the left. the i 2 c data shift register is in a write enable status only when the es0 bit of the i 2 c control register (address 00da 16 ) is 1. the bit counter is reset by a write instruction to the i 2 c data shift register. when both the es0 bit and the mst bit of the i 2 c status register (address 00d9 16 ) are 1, the scl is output by a write instruction to the i 2 c data shift register. reading data from the i 2 c data shift regis- ter is always enabled regardless of the es0 bit value. note: to write data into the i 2 c data shift register after setting the mst bit to 0 (slave mode), keep an interval of 8 machine cycles or more. (2) i 2 c address register the i 2 c address register (address 00d8 16 ) consists of a 7-bit slave ____ address and a read/write bit. in the addressing mode, the slave ad- dress written in this register is compared with the address data to be received immediately after the start condition are detected. ____ n bit 0: read/write bit (rbw) not used in the 7-bit addressing mode. in the 10-bit addressing mode, the first address data to be received is compared with the contents (sad6 to sad0 + rbw) of the i 2 c address register. the rbw bit is cleared to 0 automatically when the stop condition is detected. n bits 1 to 7: slave address (sad0Csad6) these bits store slave addresses. regardless of the 7-bit address- ing mode and the 10-bit addressing mode, the address data trans- mitted from the master is compared with the contents of these bits.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 21 table 3. set values of i 2 c clock control register and scl frequency (4) i 2 c control register the i 2 c control register (address 00da 16 ) controls data communica- tion format. n bits 0 to 2: bit counter (bc0Cbc2) these bits decide the number of bits for the next 1-byte data to be transmitted. an interrupt request signal occurs immediately after the number of bits specified with these bits are transmitted. when a start condition is received, these bits become 000 2 and the address data is always transmitted and received in 8 bits. n bit 3: i 2 c interface use enable bit (es0) this bit enables to use the multimaster i 2 c bus interface. when this bit is set to 0, the use disable status is provided, so the sda and the scl become high-impedance. when the bit is set to 1, use of the interface is enabled. when es0 = 0, the following is performed. ? pin = 1, bb = 0 and al = 0 are set (they are bits of the i 2 c status register at address 00d9 16 ). ? writing data to the i 2 c data shift register (address 00d7 16 ) is dis- abled. n bit 4: data format selection bit (als) this bit decides whether or not to recognize slave addresses. when this bit is set to 0, the addressing format is selected, so that ad- dress data is recognized. when a match is found between a slave address and address data as a result of comparison or when a gen- eral call (refer to (5) i 2 c status register, bit 1) is received, trans- mission processing can be performed. when this bit is set to 1, the free data format is selected, so that slave addresses are not recog- nized. n bit 5: addressing format selection bit (10bit sad) this bit selects a slave address specification format. when this bit is set to 0, the 7-bit addressing format is selected. in this case, only the high-order 7 bits (slave address) of the i 2 c address register (ad- dress 00d8 16 ) are compared with address data. when this bit is set to 1, the 10-bit addressing format is selected, all the bits of the i 2 c address register are compared with address data. n bits 6 and 7: connection control bits between i 2 c-bus interface and ports (bsel0, bsel1) these bits controls the connection between scl and ports or sda and ports (refer to figure 15). scl frequency (at f = 4mhz, unit : khz) setting value of ccr4Cccr0 standard clock mode setting disabled setting disabled setting disabled setting disabled setting disabled 100 83.3 500/ccr value 17.2 16.6 16.1 high-speed clock mode setting disabled setting disabled setting disabled 333 250 400(note) 166 1000/ccr value 34.5 33.3 32.3 ccr4 0 0 0 0 0 0 0 1 1 1 ccr3 0 0 0 0 0 0 0 1 1 1 ccr2 0 0 0 0 1 1 1 1 1 1 ccr1 0 0 1 1 0 0 1 0 1 1 ccr0 0 1 0 1 0 1 0 1 0 1 note: at 400 khz in the high-speed clock mode, the duty is 40%. in the other cases, the duty is 50%. fig. 14. structure of i 2 c clock control register 0 : standard clock mode 1 : high-speed clock mode ack ack bit fast mode ccr4 ccr3 ccr2 ccr1 ccr0 70 i 2 c clock control register (s2 : address 00db 16 ) scl frequency control bits refer to table 3. scl mode specification bit ack bit 0 : ack is returned. 1 : ack is not returned. ack clock bit 0 : no ack clock 1 : ack clock
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 22 (5) i 2 c status register the i 2 c status register (address 00d9 16 ) controls the i 2 c-bus inter- face status. the low-order 4 bits are read-only bits and the high- order 4 bits can be read out and written to. n bit 0: last receive bit (lrb) this bit stores the last bit value of received data and can also be used for ack receive confirmation. if ack is returned when an ack clock occurs, the lrb bit is set to 0. if ack is not returned, this bit is set to 1. except in the ack mode, the last bit value of received data is input. the state of this bit is changed from 1 to 0 by execut- ing a write instruction to the i 2 c data shift register (address 00d7 16 ). n bit 1: general call detecting flag (ad0) this bit is set to 1 when a general call ] whose address data is all 0 is received in the slave mode. by a general call of the master device, every slave device receives control data after the general call. the ad0 bit is set to 0 by detecting the stop condition or start con- dition. ] general call: the master transmits the general call address 00 16 to all slaves. n bit 2: slave address comparison flag (aas) this flag indicates a comparison result of address data. in the slave receive mode, when the 7-bit addressing format is selected, this bit is set to 1 in one of the following conditions. ? the address data immediately after occurrence of a start condition agrees with the slave address stored in the high-order 7 bits of the i 2 c address register (address 00d8 16 ). ? a general call is received. in the slave reception mode, when the 10-bit addressing format is selected, this bit is set to 1 with the following condition. ? when the address data is compared with the i 2 c address register (8 bits consisted of slave address and rbw), the first bytes agree. a the state of this bit is changed from 1 to 0 by executing a write instruction to the i 2 c data shift register (address 00d7 16 ). fig. 15. connection port control by bsel0 and bsel1 fig. 16. structure of i 2 c control register ? ??bsel0 scl1/p1 1 scl2/p1 2 ? ??bsel1 ? ??bsel0 sda1/p1 3 sda2/p1 4 ? ??bsel1 multi-master i 2 c-bus interface scl sda 7 bsel1 bsel0 10 bit sad als es0 bc2 bc1 bc0 0 connection control bits between i 2 c-bus interface and ports b7 b6 connection port 0 0 : none 0 1 : scl1, sda1 1 0 : scl2, sda2 1 1 : scl1, sda1, scl2, sda2 i 2 c control register (s1d : address 00da 16 ) bit counter (number of transmit/receive bits) b2 b1 b0 0 0 0 : 8 0 0 1 : 7 0 1 0 : 6 0 1 1 : 5 1 0 0 : 4 1 0 1 : 3 1 1 0 : 2 1 1 1 : 1 i 2 c-bus interface use enable bit 0 : disabled 1 : enabled data format selection bit 0 : addressing format 1 : free data format addressing format selection bit 0 : 7-bit addressing format 1 : 10-bit addressing format
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 23 n bit 3: arbitration lost ] detecting flag (al) in the master transmission mode, when the sda is made l by any other device, arbitration is judged to have been lost, so that this bit is set to 1. at the same time, the trx bit is set to 0, so that immedi- ately after transmission of the byte whose arbitration was lost is com- pleted, the mst bit is set to 0. in the case arbitration is lost during slave address transmission, the trx bit is set to 0 and the recep- tion mode is set. consequently, it becomes possible to receive and recognize its own slave address transmitted by another master de- vice. ] arbitration lost: the status in which communication as a master is disabled. n bit 4: i 2 c-bus interface interrupt request bit (pin) this bit generates an interrupt request signal. each time 1-byte data is transmitted, the state of the pin bit changes from 1 to 0. at the same time, an interrupt request signal occurs to the cpu. the pin bit is set to 0 in synchronization with a falling of the last clock (in- cluding the ack clock) of an internal clock and an interrupt request signal occurs in synchronization with a falling of the pin bit. when the pin bit is 0, the scl is kept in the 0 state and clock generation is disabled. figure 18 shows an interrupt request signal generating timing chart. the pin bit is set to 1 in one of the following conditions. ? executing a write instruction to the i 2 c data shift register (address 00d7 16 ). ? when the es0 bit is 0 ? at reset the conditions in which the pin bit is set to 0 are shown below: ? immediately after completion of 1-byte data transmission (includ- ing when arbitration lost is detected) ? immediately after completion of 1-byte data reception ? in the slave reception mode, with als = 0 and immediately after completion of slave address or general call address reception ? in the slave reception mode, with als = 1 and immediately after completion of address data reception n bit 5: bus busy flag (bb) this bit indicates the status of use of the bus system. when this bit is set to 0, this bus system is not busy and a start condition can be generated. when this bit is set to 1, this bus system is busy and the occurrence of a start condition is disabled by the start condi- tion duplication prevention function (note). this flag can be written by software only in the master transmission mode. in the other modes, this bit is set to 1 by detecting a start condition and set to 0 by detecting a stop condition. when the es0 bit of the i 2 c control register (address 00da 16 ) is 0 and at reset, the bb flag is kept in the 0 state. n bit 6: communication mode specification bit (transfer direction specification bit: trx) this bit decides a direction of transfer for data communication. when this bit is 0, the reception mode is selected and the data of a trans- mitting device is received. when the bit is 1, the transmission mode is selected and address data and control data are output onto the sda in synchronization with the clock generated on the scl. when the als bit of the i 2 c control register (address 00da 16 ) is 0 in the slave reception mode is selected, the trx bit is set to 1 __ (transmit) if the least significant bit (r/w bit) of the address data trans- __ mitted by the master is 1. when the als bit is 0 and the r/w bit is 0, the trx bit is cleared to 0 (receive). the trx bit is cleared to 0 in one of the following conditions. ? when arbitration lost is detected. ? when a stop condition is detected. ? when occurence of a start condition is disabled by the start condition duplication preventing function (note). ? with mst = 0 and when a start condition is detected. ? with mst = 0 and when ack non-return is detected. ? at reset n bit 7: communication mode specification bit (master/slave speci- fication bit: mst) this bit is used for master/slave specification for data communica- tion. when this bit is 0, the slave is specified, so that a start condition and a stop condition generated by the master are re- ceived, and data communication is performed in synchronization with the clock generated by the master. when this bit is 1, the master is specified and a start condition and a stop condition are gener- ated, and also the clocks required for data communication are gen- erated on the scl. the mst bit is cleared to 0 in one of the following conditions. ? immediately after completion of 1-byte data transmission when ar- bitration lost is detected ? when a stop condition is detected. ? when occurence of a start condition is disabled by the start condition duplication preventing function (note). ? at reset note: the start condition duplication prevention function disables the occurence of a start condition, reset of bit counter and scl output when the following condition is satisfied: ? a start condition is set by another master device.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 24 7 mst 0 i 2 c status register (s1 : address 00d9 16 ) general call detecting flag slave address comparison arbitration lost detecting flag i 2 c-bus interface interrupt request bit 0 : interrupt request issued 1 : no interrupt request issued bus busy flag communication mode trx bb pin al aas ad 0 lrb note: these bit and flags can be read out but cannot be written. (6) start condition generating method when the es0 bit of the i 2 c control register (address 00da 16 ) is 1, execute a write instruction to the i 2 c status register (address 00d9 16 ) for setting the mst, trx and bb bits to 1. then a start condi- tion occurs. after that, the bit counter becomes 000 2 and an scl for 1 byte is output. the start condition generating timing and bb bit set timing are different in the standard clock mode and the high- speed clock mode. refer to figure 19, the start condition generat- ing timing diagram, and table 4, the start condition/stop condi- tion generating timing table. (7) stop condition generating method when the es0 bit of the i 2 c control register (address 00da 16 ) is 1, execute a write instruction to the i 2 c status register (address 00d9 16 ) for setting the mst bit and the trx bit to 1 and the bb bit to 0. then a stop condition occurs. the stop condition generating tim- ing and the bb flag reset timing are different in the standard clock mode and the high-speed clock mode. refer to figure 20, the stop condition generating timing diagram, and table 4, the start condi- tion/stop condition generating timing table. table 4. start condition/stop condition generating timing table item setup time hold time set/reset time for bb flag standard clock mode 5.0 m s (20 cycles) 5.0 m s (20 cycles) 3.0 m s (12 cycles) high-speed clock mode 2.5 m s (10 cycles) 2.5 m s (10 cycles) 1.5 m s (6 cycles) note: absolute time at f = 4 mhz. the value in parentheses de- notes the number of f cycles. fig. 17. structure of i 2 c status register fig. 18. interrupt request signal generating timing fig. 19. start condition generating timing diagram fig. 20. stop condition generating timing diagram i 2 c status register write signal set time for bb flag hold time setup time scl sda bb flag setup time scl pin iicirq i 2 c status register write signal reset time for bb flag hold time setup time scl sda bb flag last receive bit (note) 0 : last bit = 0 1 : last bit = 1 (note) 0 : no general call detected 1 : general call detected flag (note) 0 : address disagreement 1 : address agreement (note) 0 : not detected 1 : detected 0 : bus free 1 : bus busy specification bits 00 : slave receive mode 01 : slave transmit mode 10 : master receive mode 11 : master transmit mode
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 25 fig. 21. start condition/stop condition detecting timing diagram table 5. start condition/stop condition detecting conditions (8) start/stop condition detecting condi- tions the start/stop condition detecting conditions are shown in fig- ure 21 and table 5. only when the 3 conditions of table 5 are satis- fied, a start/stop condition can be detected. note: when a stop condition is detected in the slave mode (mst = 0), an interrupt request signal iicirq occurs to the cpu. standard clock mode 6.5 m s (26 cycles) < scl release time 3.25 m s (13 cycles) < setup time 3.25 m s (13 cycles) < hold time high-speed clock mode 1.0 m s (4 cycles) < scl release time 0.5 m s (2 cycles) < setup time 0.5 m s (2 cycles) < hold time note: absolute time at f = 4 mhz. the value in parentheses de- notes the number of f cycles. (9) address data communication there are two address data communication formats, namely, 7-bit addressing format and 10-bit addressing format. the respective ad- dress communication formats is described below. 7-bit addressing format to meet the 7-bit addressing format, set the 10bit sad bit of the i 2 c control register (address 00da 16 ) to 0. the first 7-bit address data transmitted from the master is compared with the high-order 7-bit slave address stored in the i 2 c address register (address 00d8 16 ). at the time of this comparison, address comparison of the rbw bit of the i 2 c address register (address 00d8 16 ) is not made. for the data transmission format when the 7-bit addressing format is selected, refer to figure 22, (1) and (2). 10-bit addressing format to meet the 10-bit addressing format, set the 10bit sad bit of the i 2 c control register (address 00da 16 ) to 1. an address compari- son is made between the first-byte address data transmitted from the master and the 7-bit slave address stored in the i 2 c address register (address 00d8 16 ). at the time of this comparison, an ad- dress comparison between the rbw bit of the i 2 c address regis- __ ter (address 00d8 16 ) and the r/w bit which is the last bit of the address data transmitted from the master is made. in the 10-bit __ addressing mode, the r/w bit which is the last bit of the address data not only specifies the direction of communication for control data but also is processed as an address data bit. fig. 22. address data communication format aaa aaa hold time setup time scl sda (start condition) sda (stop condition) scl release time aaa aaa hold time setup time s slave address a data a data a/a p r/w 7 bits ? 1 to 8 bits 1 to 8 bits s slave address a data a data ap 7 bits ? 1 to 8 bits 1 to 8 bits (1) a master-transmitter transmits data to a slave-receiver s slave address 1st 7 bits a a data 7 bits ? 8 bits 1 to 8 bits (2) a master-receiver receives data from a slave-transmitter slave address 2nd byte a data a/a p 1 to 8 bits s slave address 1st 7 bits a a 7 bits ? 8 bits 7 bits (3) a master-transmitter transmits data to a slave-receiver with a 10-bit address slave address 2nd byte data 1 to 8 bits sr slave address 1st 7 bits a data ap 1 to 8 bits ? (4) a master-receiver receives data from a slave-transmitter with a 10-bit address s : start condition p : stop condition a : ack bit r/w : read/write bit sr : restart condition from master to slave from slave to master a r/w r/w r/w r/w
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 26 when the first-byte address data matches the slave address, the aas bit of the i 2 c status register (address 00d9 16 ) is set to 1. after the second-byte address data is stored into the i 2 c data shift register (address 00d7 16 ), make an address comparison between the sec- ond-byte data and the slave address by software. when the address data of the 2 bytes matches the slave address, set the rbw bit of the i 2 c address register (address 00d8 16 ) to 1 by software. this pro- __ cessing can match the 7-bit slave address and r/w data, which are received after a restart condition is detected, with the value of the i 2 c address register (address 00d8 16 ). for the data transmis- sion format when the 10-bit addressing format is selected, refer to figure 22, (3) and (4). (10) example of master transmission an example of master transmission in the standard clock mode, at the scl frequency of 100 khz and in the ack return mode is shown below. set a slave address in the high-order 7 bits of the i 2 c address register (address 00d8 16 ) and 0 in the rbw bit. set the ack return mode and scl = 100 khz by setting 85 16 in the i 2 c clock control register (address 00db 16 ). a set 10 16 in the i 2 c status register (address 00d9 16 ) and hold the scl at the h level. ? set a communication enable status by setting 48 16 in the i 2 c control register (address 00da 16 ). ? set the address data of the destination of transmission in the high- order 7 bits of the i 2 c data shift register (address 00d7 16 ) and set 0 in the least significant bit. ? set f0 16 in the i 2 c status register (address 00d9 16 ) to generate a start condition. at this time, an scl for 1 byte and an ack clock automatically occurs. ? set transmit data in the i 2 c data shift register (address 00d7 16 ). at this time, an scl and an ack clock automatically occurs. ? when transmitting control data of more than 1 byte, repeat step ? . set d0 16 in the i 2 c status register (address 00d9 16 ). after this, if ack is not returned or transmission ends, a stop condition occurs. (11) example of slave reception an example of slave reception in the high-speed clock mode, at the scl frequency of 400 khz, in the ack non-return mode and using the addressing format is shown below. set a slave address in the high-order 7 bits of the i 2 c address register (address 00d8 16 ) and 0 in the rbw bit. set the no ack clock mode and scl = 400 khz by setting 25 16 in the i 2 c clock control register (address 00db 16 ). a set 10 16 in the i 2 c status register (address 00d9 16 ) and hold the scl at the h level. ? set a communication enable status by setting 48 16 in the i 2 c control register (address 00da 16 ). ? when a start condition is received, an address comparison is made. ? ?when all transmitted addresses are 0 (general call) ad0 of the i 2 c status register (address 00d9 16 ) is set to 1 and an interrupt request signal occurs. ?when the transmitted addresses match the address set in ass of the i 2 c status register (address 00d9 16 ) is set to 1 and an interrupt request signal occurs. ?in the cases other than the above ad0 and aas of the i 2 c status register (address 00d9 16 ) are set to 0 and no interrupt request signal occurs. ? set dummy data in the i 2 c data shift register (address 00d7 16 ). ? when receiving control data of more than 1 byte, repeat step ? . when a stop condition is detected, the communication ends.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 27 pwm output function the M37212M6-XXXSP/fp is equipped with a 14-bit pwm (da) and eight 8-bit pwms (pwm0Cpwm7). da has a 14-bit resolution with the minimum resolution bit width of 0.25 m s (for f(x in ) = 8 mhz) and a repeat period of 4096 m s. pwm0Cpwm7 have the same circuit structure and an 8-bit resolution with minimum resolution bit width of 4 m s (for f(x in ) = 8 mhz) and repeat period of 1024 m s. figure 23 shows the pwm block diagram. the pwm timing generat- ing circuit applies individual control signals to pwm0Cpwm7 using f(x in ) divided by 2 as a reference signal. (1) data setting when outputting da, first set the high-order 8 bits to the da-h regis- ter (address 00ce 16 ), then the low-order 6 bits to the da-l register (address 00cf 16 ). when outputting pwm0Cpwm7, set 8-bit output data in the pwmi register (i means 0 to 7; addresses 00d0 16 to 00d4 16 , 00f6 16 to 00f8 16 ). (2) transmitting data from register to pwm circuit data transfer from the 8-bit pwm register to 8-bit pwm circuit is executed at writing data to the register. the signal output from the 8-bit pwm output pin corresponds to the contents of this register. also, data transfer from the da register (addresses 00ce 16 and 00cf 16 ) to the 14-bit pwm circuit is executed at writing data to the da-l register (address 00cf 16 ). reading from the da-h register (address 00ce 16 ) means reading this transferred data. accordingly, it is possible to confirm the data being output from the d-a output pin by reading the da register. (3) operating of 8-bit pwm the following is the explanation about pwm operation. at first, set the bit 0 of pwm output control register 1 (address 00d5 16 ) to 0 (at reset, bit 0 is already set to 0 automatically), so that the pwm count source is supplied. pwm0Cpwm3 are also used as pins p6 0 Cp6 3, pwm4Cpwm7 are also used as ports p0 0 Cp0 3 , respectively. for pwm0Cpwm3, set the corresponding bits of the port p6 direction register to 1 (output mode). for pwm4Cpwm7, set those of the port p0 direction regis- ter to 1. and select each output polarity by bit 3 of the pwm output control register 2(address 00d6 16 ). then, for pwm0Cpwm5, set bits 2 to 7 of the pwm output control register 1 to 1 (pwm output). for pwm6 and pwm7, set bits 0 and 1 of the pwm output control regis- ter 2 to 1. the pwm waveform is output from the pwm output pins by setting these registers. figure 24 shows the 8-bit pwm timing. one cycle (t) is composed of 256 (2 8 ) segments. the 8 kinds of pulses relative to the weight of each bit (bits 0 to 7) are output inside the circuit during 1 cycle. refer to figure 24 (a). the 8-bit pwm outputs waveform which is the logi- cal sum (or) of pulses corresponding to the contents of bits 0 to 7 of the 8-bit pwm register. several examples are shown in figure 24 (b). 256 kinds of output (h level area: 0/256 to 255/256) are se- lected by changing the contents of the pwm register. a length of entirely h output cannot be output, i.e. 256/256. (4) operating of 14-bit pwm as with 8-bit pwm, set the bit 0 of the pwm output control register 1 (address 00d5 16 ) to 0 (at reset, bit 0 is already set to 0 automati- cally), so that the pwm count source is supplied. next, select the output polarity by bit 2 of the pwm output control register 2 (address 00d6 16 ). then, the 14-bit pwm outputs from the d-a output pin by setting bit 1 of the pwm output control register 1 to 0 (at reset, this bit already set to 0 automatically) to select the da output. the output example of the 14-bit pwm is shown in figure 25. the 14-bit pwm divides the data of the da latch into the low-order 6 bits and the high-order 8 bits. the fundamental waveform is determined with the high-order 8-bit data d h . a h level area with a length t 5 d h (h level area of fundamental waveform) is output every short area of t = 256 t = 64 m s ( t is the minimum resolution bit width of 0.25 m s). the h level area increase interval (t m ) is determined with the low-order 6-bit data d l . the h level are of smaller intervals t m shown in table 6 is longer by t than that of other smaller intervals in pwm repeat period t = 64t. thus, a rectangular waveform with the different h width is output from the d-a pin. accordingly, the pwm output changes by t unit pulse width by changing the contents of the da-h and da-l registers. a length of entirely h output cannot be output, i. e. 256/ 256. (5) output after reset at reset, the output of ports p6 0 Cp6 3 and p0 0 Cp0 3 are in the high- impedance state, and the contents of the pwm register and the pwm circuit are undefined. note that after reset, the pwm output is undefined until setting the pwm register.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 28 lsb table 6. relation between the low-order 6-bit data and high-level area increase interval area longer by t than that of other t m (m = 0 to 63) nothing m = 32 m = 16, 48 m = 8, 24, 40, 56 m = 4, 12, 20, 28, 36, 44, 52, 60 m = 2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 42, 46, 50, 54, 58, 62 m = 1, 3, 5, 7, ................................ 57, 59, 61, 63 low-order 6 bits of data 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 fig. 23. pwm block diagram pwm1 register (address : 00d1 16 ) 1/2 x in pwm timing generating circuit pwm register ( address : 00d0 16 ) b7 b0 8 8-bit pwm circuit pn 3 p6 0 pw 2 d6 0 pwm0 p6 1 pw 3 d6 1 pwm1 p6 2 pw 4 d6 2 pwm2 p6 3 pw 5 d6 3 pwm3 p0 0 pw 6 d0 0 pwm4 p0 2 pw 7 d0 2 pwm5 pwm2 register (address : 00d2 16 ) pwm3 register (address : 00d3 16 ) pwm4 register (address : 00d4 16 ) pwm5 register (address : 00f6 16 ) pw 0 is as same contents pwm6 register (address : 00d7 16 ) pwm7 register (address : 00f8 16 ) p0 3 pn 1 d0 3 pwm7 p0 2 pn 0 d0 2 pwm6 inside of with the others. data bus selection gate : pw : pwm output control register 1 pn : pwm output control register 2 connected to black colored side when reset. pass gate d0 : port p0 direction register 14-bit pwm circuit pn 2 pn 4 pw 1 da msb da-h register (address : 00ce 16 ) da latch (14 bits) da-l register (note) (address : 00cf 16 ) lsb 8 6 14 6 d-a b7 b0 note: the da-l register also functions as the low-order 6 bits of the da latch. d6 : port p6 direction register
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 29 fig. 24. 8-bit pwm timing (a) pulses showing the weight of each bit 1 3 5 7 9 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 255 5 4 12 20 28 36 44 52 60 68 76 84 92 100 108 116 124 132 140 148 156 164 172 180 188 196 204 212 220 228 236 244 252 8 16 48 80 112 144 176 208 240 24 40 56 72 88 104 120 136 152 168 184 200 216 232 248 32 96 160 224 64 192 bit 7 2 6 10 14 18 22 26 30 34 38 42 46 50 54 58 62 66 70 74 78 82 86 90 94 98 102 106 110 114 118 122 126 130 134 138 142 146 150 154 158 162 166 170 174 178 182 186 190 194 198 202 206 210 214 218 222 226 230 234 238 242 246 250 254 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 128 bit 0 pwm output t = 4 m s t = 1024 m s f(x in ) = 8 mhz (b) example of 8-bit pwm t 1 16 (0) 1 16 (1) 1 16 (24) 16 (255) t = 256 t 00 01 18 ff
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 30 fig. 25. 14-bit pwm output example (f(x in ) = 8 mhz) 0.25 s b7 b0 b6 b5 b4 b3 b2 b1 0 0 01 011 0 b13 b6 0 0 010 110 b0 b5 1010 00 set 2c 16 to da-h register. [da-h register] d h at writing of da-l b0 b6 b5 b4 b3 b2 b1 0 10 100 set 28 16 to da-l register. [da-l register] d l at writing of da-l undefined these bits decide h level area of fundamental waveform. these bits decide smaller interval tm in which h leval area is [h level area of fundamental waveform + t ]. = minimum resolution bit width 0.25 s high-order 8-bit value of da latch 5 h level area of fundamental waveform ff 00 d3 fe fd d6 d4 02 01 d5 14-bit pwm output 8-bit counter 0.25 s 5 44 ff 00 d3 fe fd d6 d4 02 01 d5 14-bit pwm output 8-bit counter s 5 45 fundamental waveform waveform of smaller interval tm specified by low-order 6 bits fundamental waveform of smaller interval tm which is not specified by low-order 6 bits is not changed. 14-bit pwm output low-order 6-bit output of da latch 0.25 s 5 44 t = 0.25 s t = 4096 s repeat period t 0 t 1 t 2 t 3 t 4 t 5 t 59 t 60 t 61 t 62 t 63 [da latch] b7 2c 2b 2a 03 02 01 00 2c 2b 2a 03 02 01 00 0.25
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 31 fig. 26. structure of pwm output control register 1 fig. 27. structure of pwm output control register 2 0 7 pwm output control register 2 (pn: address 00d6 16 ) da output polarity selection bit 0 : positive polarity 1 : negative polarity pwm output polarity selection bit 0 : positive polarity 1 : negative polarity da general-purpose output bit 0 : output ? 1 : output ? p0 2 /pwm6 output selection bit 0 : p0 2 output 1 : pwm6 output p0 3 /pwm7 output selection bit 0 : p0 3 output 1 : pwm7 output da, pwm count source selection bit 0 : count source supply 1 : count source stop da/pn 4 output selection bit 0 : da output 1 : pn 4 output p6 0 /pwm0 output selection bit 0 : p6 0 output 1 : pwm0 output p6 1 /pwm1 output selection bit 0 : p6 1 output 1 : pwm1 output 0 7 pwm output control register 1 (pw: address 00d5 16 ) p6 2 /pwm2 output selection bit 0 : p6 2 output 1 : pwm2 output p6 3 /pwm3 output selection bit 0 : p6 3 output 1 : pwm3 output p0 0 /pwm4 output selection bit 0 : p0 0 output 1 : pwm4 output p0 1 /pwm5 output selection bit 0 : p0 1 output 1 : pwm5 output
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 32 a-d control register bit 1 0 0 1 0 1 1 bit 0 0 1 0 1 0 1 a-d comparator a-d comparator consists of 6-bit d-a converter and comparator. a-d comparator block diagram is shown in figure 30. the reference voltage v ref for d-a conversion is set by bits 0 to 5 of the a-d control register 2 (address 00ef 16 ). the comparison result of the analog input voltage and the reference voltage v ref is stored in bit 4 of the a-d control register (address 00ee 16 ). for a-d comparison, set 0 to corresponding bits of the direction register to use ports as analog input pins. write the data for select of analog input pins to bits 0 to 2 of the a-d mode register and write the digital value corresponding to v ref to be compared to the bits 0 to 5 a-d control register. the voltage comparison starts by writing to the a-d control register, and it is completed after 16 machine cycles (nop instruction 5 8). table 7. relation between contents of a-d control register and reference voltage v ref bit 4 0 0 0 1 1 1 bit 3 0 0 0 1 1 1 bit 2 0 0 0 1 1 1 bit 5 0 0 0 1 1 1 1/128 v cc 3/128 v cc 5/128 v cc 123/128 v cc 125/128 v cc 127/128 v cc reference voltage v ref fig. 28. structure of a-d mode register fig. 29. structure of a-d control register fig. 30. a-d comparator block diagram 0 7 a-d control register (adc: address 00ef 16 ) aaaaa aaaaa d-a converter set bits refer to table 7. a-d mode register bits 0 to 2 comparator control data bus bit 4 switch tree a-d control register 2 resistor ladder compa- rator analog signal switch bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 a-d mode register p1 5 /int3/a-d1 p1 6 /a-d2 p1 7 /a-d3 p4 2 /s in /a-d5 p4 1 /s clk /a-d6 p4 0 /s out(/in) /a-d7 p1 0 /out2/a-d8 p3 5 /int2/a-d3 storage bit of comparison result 0 : input voltage < reference voltage 1 : input voltage > reference voltage a-d mode register (adm: address 00ee 16 ) analog input pin selection bits b2 b1 b0 0 0 0 : a-d1 0 0 1 : a-d2 0 1 0 : a-d3 0 1 1 : a-d4 1 0 0 : a-d5 1 0 1 : a-d6 1 1 0 : a-d7 1 1 1 : a-d8 70
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 33 parameter number of display characters dot structure kinds of characters kinds of character sizes color display expansion raster coloring character background coloring crt display functions (1) outline of crt display functions table 8 outlines the crt display functions of the M37212M6-XXXSP/ fp. the M37212M6-XXXSP/fp incorporates a crt display control circuit of 24 characters 5 2 lines. crt display is controlled by the crt control register. up to 256 kinds of characters can be displayed. the colors can be specified for each character and up to 4 kinds of colors can be displayed on one screen. a combination of up to 7 colors can be obtained by using each output signal (r, g, and b). characters are displayed in a 12 5 16 dots configuration to obtain smooth character patterns (refer to figure 31). the following shows the procedure how to display characters on the crt screen. write the display character code in the display ram. specify the display color by using the color register. a write the color register in which the display color is set in the dis- play ram. ? specify the vertical position by using the vertical position register. ? specify the character size by using the character size register. ? specify the horizontal position by using the horizontal position register. ? write the display enable bit to the designated block display flag of the crt control register. when this is done, the crt display starts according to the input of the v sync signal. the crt display circuit has an extended display mode. this mode allows multiple lines (3 lines or more) to be displayed on the screen by interrupting the display each time one line is displayed and rewrit- ing data in the block for which display is terminated by software. figure 32 shows the structure of the crt display control register. figure 33 shows the block diagram of the crt display control circuit. functions 24 characters 5 2 lines 12 5 16 dots (refer to figure 31) 256 kinds 3 kinds 1 screen : 4 kinds, maximum 7 kinds a character possible (multiline display) possible (maximum 7 kinds) possible (a character unit, 1 screen : 4 kinds, maximum 7 kinds) table 8. outline of crt display functions fig. 31. crt display character configuration fig. 32. structure of crt control register 12 dot s 16 dot s 7 0 crt control register (cc: address 00ea 16 ) all-blocks display control bit (note) 0 : all-blocks display off 1 : all-blocks display on block 1 display control bit 0 : block 1 display off 1 : block 1 display on block 2 display control bit 0 : block 2 display off 1 : block 2 display on p1 0 /out2 pin switch bit 0 : p1 0 1 : out2 note: display is controlled by logical product (and) between the all-blocks display control bit and each block display control bit. kinds of colors coloring unit
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 34 fig. 33. block diagram of crt display control circuit crt control register (address 00ea 16 ) vertical position registers (addresses 00e1 16 , 00e2 16 ) character size register (address 00e4 16 ) horizontal position register (address 00e0 16 ) border selection register (address 00e5 16 ) display oscillation circuit osc1 osc2 display position control circuit h sync v sync display control circuit ram for display 10 bits 5 24 5 2 color registers (addresses 00e6 16 to 00e9 16 ) crt port control register (address 00ec 16 ) data bus rom for display 12 bits 5 16 5 256 shift register 12 bits shift register 12 bits output circuit r g b out1 out2
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 35 (2) display position the display positions of characters are specified in units called a block. there are 2 blocks, block 1 and block 2. up to 24 characters can be displayed in each block (refer to (4) memory for display). the display position of each block can be set in both horizontal and vertical directions by software. the display position in the horizontal direction can be selected for all blocks in common from 64-step display positions in units of 4t c (t c = oscillating cycle for display). the display position in the vertical direction for each block can be selected from 128-step display positions in units of 4 scanning lines. block 2 is displayed after the display of block 1 is completed (refer to figure 34 (a)). accordingly, if the display of block 2 starts during the display of block 1, only block 1 is displayed. similarly, when multiline display, block 1 is displayed after the display of block 2 is completed (refer to figure 34 (b)). the vertical position can be specified from 128-step positions (4 scan- ning lines per a step) for each block by setting values 00 16 to 7f 16 to bits 0 to 6 in the vertical position register (addresses 00e1 16 and 00e2 16 ). figure 36 shows the structure of the vertical position regis- ter. fig. 34. display position (hr) cv1 cv2 block 1 block 2 (a) example when each block is separated cv1 cv2 block 1 block 2 block 1 (second) cv1 no display no display (b) example when block 2 overlaps with block 1
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 36 the horizontal position is common to all blocks, and can be set in 64 steps (where 1 step is 4t c , t c being the display oscillation period) as values 00 16 to 3f 16 in bits 0 to 5 of the horizontal position register (address 00e0 16 ). the structure of the horizontal position register is shown in figure 37. the display position in the vertical direction is determined by count- ing the horizontal sync signal (h sync ). at this time, it starts to count the rising edge (falling edge) of h sync signal from after about 1 ma- chine cycle of rising edge (falling edge) of v sync signal. so interval from rising edge (falling edge) of v sync signal to rising edge (falling edge) of h sync signal needs enough time (2 machine cycles or more) for avoiding jitter. the polarity of h sync and v sync signals can se- lect with the crt port control register (address 00ec 16 ). for details. refer to (8) crt output pin control. note: when bits 0 and 1 of the crt port control register (address 00ec 16 ) are set to 1 (negative polarity), the vertical position is determined by counting falling edge of h sync signal after rising edge of v sync control signal in the microcomputer (re- fer to figure 35). fig. 36. structure of vertical position register fig. 37. structure of horizontal position register vertical position registers 1, 2 (cv1 : address 00e1 16 ) (cv2 : address 00e2 16 ) 70 vertical display start positions 128 steps from ?0 16 ?to ?f 16 horizontal position register (hr : address 00e0 16 ) horizontal display start positions 64 steps from ?0 16 ?to ?f 16 (1 step is 4tc) 70 fig. 35. supplement explanation for display position when bits 0 and 1 of the crt port control register (address 00ec 16 ) are set to ??(negative polarity) v sync signal input v sync control signal in microcomputer 0.25 to 0.50 [ s] (at f(x in ) = 8mhz) period of counting h sync signal aaa (note) h sync signal input not count 12345 note: do not generate falling edge of h sync signal near rising edge of v sync control signal in microcomputer to avoid jitter.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 37 cs n0 0 1 0 1 (3) character size the size of characters to be displayed can be from 3 sizes for each block. use the character size register (address 00e4 16 ) to set a char- acter size. the character size of block 1 can be specified by using bits 0 and 1 of the character size register; the character size of block 2 can be specified by using bits 2 and 3. figure 38 shows the struc- ture of the character size register. the character size can be selected from 3 sizes: minimum size, me- dium size and large size. each character size is determined by the number of scanning lines in the height (vertical) direction and the oscillating cycle for display (t c ) in the width (horizontal) direction. the minimum size consists of [1 scanning line] 5 [1t c ]; the medium size consists of [2 scanning lines] 5 [2t c ]; and the large size con- sists of [3 scanning lines] 5 [3t c ]. table 9 shows the relation be- tween the set values in the character size register and the character sizes. set values of character size register cs n1 0 0 1 1 character size minimum medium large width (horizontal) direction t c : oscillating cycle for display 1t c 2t c 3t c height (vertical) direction scanning lines 1 2 3 this is not available note: the display start position in the horizontal direction is not affected by the character size. in other words, the horizontal display start position is common to all blocks even when the character size varies with each block (refer to figure 39). table 9. relation between set values in character size register and character sizes fig. 39. display start position of each character size (horizontal direction) fig. 38. structure of character size register 0 7 character size register (cs : address 00e4 16 ) character size of block 1 selection bits 0 0 : minimum size 0 1 : medium size 1 0 : large size 1 1 : do not set. character size of block 2 selection bits 0 0 : minimum size 0 1 : medium size 1 0 : large size 1 1 : do not set . mini- mum medium large horizontal display start position
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 38 (4) memory for display there are 2 types of memory for display : crt display rom (ad- dresses 10000 16 to 11fff 16 ) used to store character dot data (masked) and crt display ram (addresses 0600 16 to 06b7 16 ) used to specify the colors of characters to be displayed. the following de- scribes each type of display memory. rom for display (addresses 10000 16 to 11fff 16 ) the crt display rom contains dot pattern data for characters to be displayed. for characters stored in this rom to be actually displayed, it is necessary to specify them by writing the character code inherent to each character (code determined based on the addresses in the crt display rom) into the crt display ram. the character code list is shown in table 10. the crt display rom has a capacity of 8k bytes. since 32 bytes are required for 1 character data, the rom can stores up to 256 kinds of characters. the crt display rom space is broadly divided into 2 areas. the [vertical 16 dots] 5 [horizontal (left side) 8 dots] data of display char- acters are stored in addresses 10000 16 to 107ff 16 and 11000 16 to 117ff 16 ; the [vertical 16 dots] 5 [horizontal (right side) 4 dots] data of display characters are stored in addresses 10800 16 to 10fff 16 and 11800 16 to 11fff 16 (refer to figure 40). note however that the high-order 4 bits in the data to be written to addresses 10800 16 to 10fff 16 and 11800 16 to 11fff 16 must be set to 1 (by writing data fx 16 ). fig. 40. display character stored data 10xx0 16 + 800 16 or 11xx0 16 + 800 16 00 000000 00 000000 00 000010 00 000101 01 00 1 000 01 001000 01 001000 00 010000 0 1 01 1111 001 00 100000 00 100000 00 100000 00 000000 00 000101 00 000010 0 1111 000 0 000 0 000 0 000 0 000 0 000 0 000 0 100 0 100 0 100 0 010 0 010 0 010 0 000 0 000 0 000 10xxf 16 + 800 16 or 11xxf 16 + 800 16 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 1111 b7 b0 b7 b0 b3 10xx0 16 or 11xx0 16 10xxf 16 or 11xxf 16 0 0000
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 39 block character code specification color specification 23rd character 3rd character : 22nd character 1st character 2nd character not used 24th character 23rd character 3rd character : 22nd character 1st character 2nd character 24th character 0616 16 0602 16 : 0615 16 0600 16 0601 16 0617 16 0618 16 to 061f 16 0636 16 0622 16 : 0635 16 0620 16 0621 16 0637 16 0696 16 0682 16 : 0695 16 0680 16 0681 16 0697 16 0698 16 to 069f 16 06b6 16 06a2 16 : 06b5 16 06a0 16 06a1 16 06b7 16 ram for display (addresses 0600 16 to 06b7 16 ) the crt display ram is allocated at addresses 0600 16 to 06b7 16 , and is divided into a display character code specification part and display color specification part for each block. table 11 shows the contents of the crt display ram. for example, to display 1 character position (the left edge) in block 1, write the character code in address 0600 16 and write the color register no. to the low-order 2 bits (bits 0 and 1) in address 0680 16 . the color register no. to be written here is one of the 4 color regis- ters in which the color to be displayed is set in advance. for details on color registers, refer to (5) color registers. the structure of the crt display ram is shown in figure 41. block 1 display position (from left) table 11. contents of crt display ram block 2 table 10. character code list (partially abbreviated) 117f0 16 to 117ff 16 11000 16 to 1100f 16 81 16 11010 16 to 1101f 16 character data storage address left 8 dots lines right 4 dots lines 00 16 10000 16 to 1000f 16 10010 16 to 1001f 16 10020 16 to 1002f 16 01 16 02 16 10030 16 to 1003f 16 : 03 16 character code : 10800 16 to 1080f 16 10810 16 to 1081f 16 10820 16 to 1082f 16 10830 16 to 1083f 16 : 7e 16 107e0 16 to 107ef 16 107f0 16 to 107ff 16 7f 16 80 16 : : 10fe0 16 to 10fef 16 10ff0 16 to 10fff 16 11800 16 to 1180f 16 11810 16 to 1181f 16 : fd 16 117d0 16 to 117df 16 117e0 16 to 117ef 16 fe 16 ff 16 11fd0 16 to 11fdf 16 11fe0 16 to 11fef 16 11ff0 16 to 11fff 16
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 40 fig. 41. structure of crt display ram [color specification] 0 0 : specifying color register 0 0 1 : specifying color register 1 1 0 : specifying color register 2 1 1 : specifying color register 3 color register specification 0 1 block 1 [character specification] specify 256 characters (00 16 to ff 16 ) character code 7 0 block 2 [character specification] 1st character : 0620 16 24th char acter : 0637 16 1st character : 0680 16 24th character : 0697 16 1st character : 0600 16 24th character : 0617 16 7 0 [color specification] 1st character : 06a0 16 24th character : 06b7 16 0 1 to to to to specify 256 characters (00 16 to ff 16 ) character code 0 0 : specifying color register 0 0 1 : specifying color register 1 1 0 : specifying color register 2 1 1 : specifying color register 3 color register specification
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 41 0 7 color register 0, 1, 2, 3 (co0 : address 00e6 16 ) (co1 : address 00e7 16 ) (co2 : address 00e8 16 ) (co3 : address 00e9 16 ) b signal output selection bit 0 : no character is output 1 : character is output g signal output selection bit 0 : no character is output 1 : character is output r signal output selection bit 0 : no character is output 1 : character is output b signal output (background) selection bit (note 1) 0 : no background color is output 1 : background color is output g signal output (background) selection bit 0 : no background color is output 1 : background color is output out1 signal output control bit (notes 1,2) 0 : character is output 1 : blank is output r signal output (background) selection bit (note 2) 0 : no background color is output 1 : background color is output notes 1 : when bit 5 = ??and bit 4 = ?,?there is output same as a character or border output from the out1 pin. do not set bit 5 = ??and bit 4 = ?. when only bit 7 = ??and bit 5 = ?,?there is output from the out2 pin. 2 : (5) color registers the color of a displayed character can be specified by setting the color to one of the 4 registers (co0 to co3: addresses 00e6 16 to 00e9 16 ) and then specifying that color register with the crt display ram. there are 3 color outputs; r, g and b. by using a combination of these outputs, it is possible to set 2 3 C1 (when no output) = 7 col- ors. however, since only 4 color registers are available, up to 4 col- ors can be disabled at one time. r, g and b outputs are set by using bits 1 to 3 in the color register. bit 5 is used to specify whether a character output or blank output. bits 4, 6 and 7 are used to specify character background color. fig- ure 42 shows the structure of the color register. fig. 42. structure of color registers
= 1, there is output same as a character or border output from the out1 pin. mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 42 table 12. display example of character background coloring (when green is set for a character and blue is set for background color) border selection register color register con 7 con 6 con 5 con 4 con 3 con 2 con 1 md 0 g output b output out1 output character output out2 output 0 5 0 0 1 0 no output same output as character a green video signal and character color (green) are not mixed. no output (note 2) 0 0 5 0 0 1 0 no output same output as character a video signal and character color (green) are not mixed. blank output 1 green no output tv image of character background is not displayed. blank output green no output (note 2) 1 5 0 1 0 1 0 no output border output (black) video signal and character color (green) are not mixed. green no output (note 2) 010010 00 1 green 01010 00 no output (note 2) background color blue 5 10 tv image of character background is not displayed. green 1 010 blank output 00 no output (note 2) black no output 11 green no output (note 2) 1 010 tv image of character background is not displayed. blank output 00 border output (black) background color C border blue notes 1 : 5 = 0 and con 4 do not set con 5 = 0 and con 4 = 0. 2 : when only con 7 = 1 and con 5 = 0, there is output from the out2 pin. 3 : the portion a in which character dots are displayed is not mixed with any tv video signal. 4 : the wavy-lined arrows in the table denote video signals. 5 : n : 0 to 3, 5 : 0 or 1 border output (black) 1 (note 1) 1 blank output blank output tv image of character background is not displayed. when con
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 43 (6) character border function an border of 1 clock (1 dot) equivalent size can be added to a char- acter to be displayed in both horizontal and vertical directions. the border is output from the out pin. in this case, set bit 5 of a color register to 0 (character is output). border can be specified in units of block by using the border selec- tion register (address 00e5 16 ). figure 43 shows the structure of the border selection register. table 13 shows the relationship between the values set in the border selection register and the character bor- der function. fig. 44. example of border fig. 43. structure of border selection register border selection register example of output functions mdn 0 0 1 border including character ordinary r, g, b output out1 output r, g, b output out1 output table 13. relationship between set value in border selection register and character border function aa aa aa aa aa aa aa a a aa aa aa aa aa aa a a aa aa aa aa aa aa a a aa aa aa aa a a aa aa aa aa a aa aa aa aa aa aa a a a a aa aa aa aa aa aa a a aa aa a a a a aa aa aa aa aa aa aa aa aa aa a a aa a aa a aa aa aa aa a a aa aa aa aa aa aa aa aa a a a a aa aa aa aa a a a a aa aa aa aa a a a a aa aa a a aa aa a a aa aa a a a a aa aa aa aa aa aa aa aa aa aa block 1 out1 output border selection bit 0 : same output as r, g, b is output 1 : border output 0 7 border selection register (md : address 00e5 16 ) block 2 out1 output border selection bit 0 : same output as r, g, b is output 1 : border output
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 44 block 1 (on display) ?rt interrupt request on display (crt interrupt request occurs at the end of block display) block 2 (on display) block 1' (on display) block 2' (on display) ?rt interrupt request ?rt interrupt request ?rt interrupt request block 1 (on display) ?rt interrupt request off display (crt interrupt request does not occur at the end of block display) block 2 (on display) block 1' (off display) block 2' (off display) ?rt interrupt request no ?rt interrupt request no ?rt interrupt request (7) multiline display the M37212M6-XXXSP/fp can ordinarily display 2 lines on the crt screen by displaying 2 blocks at different vertical positions. in addi- tion, it can display up to 16 lines by using crt interrupts. a crt interrupt request occurs at the point at which display of each block has been completed. in other words, when a scanning line reaches the point of the display position (specified by the vertical position registers) of a certain block, the character display of that block starts, and an interrupt occurs at the point at which the scan- ning line exceeds the block. note: a crt interrupt does not occur at the end of display when the block is not displayed. in other words, if a block is set to off display with the display control bit of the crt control reg- ister (address 00ea 16 ), a crt interrupt request does not occur (refer to figure 45). fig. 45. timing of crt interrupt request
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 45 aaaaaa a aaaa a a aaaa a aaaaaa aa aa aa aa aa aa aa aa a' a aa aa aa ?ed ?lue h sync r b out1 signals across a ?a' 0 7 crt port control register (crtp : address 00ec 16 ) h sync input polarity switch bit 0 : positive polarity 1 : negative polarity r signal output switch bit 0 : r signal output 1 : mute signal output v sync input polarity switch bit 0 : positive polarity 1 : negative polarity r, g, b output polarity switch bit 0 : positive polarity 1 : negative polarity out2 output polarity switch bit 0 : positive polarity 1 : negative polarity out1 output polarity switch bit 0 : positive polarity 1 : negative polarity g signal output switch bit 0 : g signal output 1 : mute signal output b signal output switch bit 0 : b signal output 1 : mute signal output (8) crt output pin control the crt output pins r, g, b, and out1 can also function as ports p5 2 , p5 3 , p5 4 and p5 5 . set the corresponding bit of the port p5 di- rection register (address 00cb 16 ) to 0 to specify these pins as crt output pins, or set it to 1 to specify it as a general-purpose port p5 pins. the out2 can also function as port p1 0 . set bit 7 of the crt control register (address 00ea 16 ) to 0 to specify it as port p1 0 , set it to 1 to specify it as out2 pin. the input polarity of signals h sync and v sync and output polarity of signals r, g, b, out1 and out2 can be specified with the bits of the crt port control register (address 00ec 16 ) . set a bit to 0 to specify positive polarity; set it to 1 to specify negative polarity. the struc- ture of the crt port control register is shown in figure 46. (9) raster coloring function an entire screen (raster) can be colored by setting the bits 5 to 7 of the crt port control register. since each of the r, g, and b pins can be switched to raster coloring output, 7 raster colors can be obtained. if the r, g, and b pins have been set to mute signal output, a raster coloring signal is output in the part except a no-raster colored char- acter (in figure 47, a character o) during 1 horizontal scanning period. this ensures that character colors do not mix with the raster color. in this case, mute signal is output from the out1 pin. an example in which a magenta character i and a red character o are displayed with blue raster coloring is shown in figure 47. fig. 47. example of raster coloring fig. 46. structure of crt port control register
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 46 (10) clock for display as a clock for display to be used for crt display, it is possible to select one of the following 4 types. ? main clock supplied from the x in pin ? main clock supplied from the x in pin divided by 1.5 ? clock from the lc or rc supplied from the pins osc1 and osc2. ? clock from the ceramic resonator or quartz-crystal oscillator sup- plied from the pins osc1 and osc2. this clock for display can be selected for each block by the crt clock selection register (address 00ed 16 ). when selecting the main clock, set the oscillation frequency to 8 mhz. table 14. set value of crt clock selection register and clock for display b0 0 1 0 1 b1 0 0 1 1 functions the clock for display is supplied by connecting rc or lc across the pins osc1 and osc2. since the main clock is used as the clock for display, the oscillation frequency is limited. because of this, the character size in width (horizontal) direction is also limited. in this case, pins osc1 and osc2 are also used as input ports p3 6 and p3 7 respectively. the clock for display is supplied by connecting the following across the pins osc1 and osc2. ? a ceramic resonator only for crt display and a feedback resistor ? a quartz-crystal oscillator only for crt display and a feedback resistor (note) note: it is necessary to connect other ceramic resonator or quartz-crystal oscillator across the pins x in and x out . fig. 48. structure of crt clock selection register crt oscillation frequency = f(x in ) crt oscillation frequency = f(x in )/1.5 0 7 0 00 000 crt clock selection register (ck : address 00ed 16 ) display clock selection bits refer to table 14. fix these bits to ?.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 47 reset circuit the M37212M6-XXXSP/fp is reset according to the sequence shown in figure 49. it starts the program from the address formed by using the content of address ffff 16 as the high-order address and the content of the address fffe 16 as the low-order address, when the ______ reset pin is held at l level for 2 m s or more while the power source voltage is 5 v 10 % and the oscillation of a quartz-crystal oscillator or a ceramic resonator is stable and then returned to h level. the internal state of microcomputer at reset are shown in figure 51. an example of the reset circuit is shown in figure 50. the reset input voltage must be kept 0.6 v or less until the power source voltage surpasses 4.5 v. fig. 49. reset sequence fig. 50. example of reset circuit 0 v 0 v 4.5 v 0.6 v poweron 26 30 27 vcc reset vss M37212M6-XXXSP 1 5 4 3 0.1 f m51953al power source voltage reset input voltage x in f reset internal reset sync address data 32768 count of x in clock cycle (note 3) reset address from the vector table ? ? 01, s 01, s-1 01, s-2 fffe ffff ad h , ad l ? ? ? ? ? ad l ad h notes 1 : 2 : 3: f(x in ) and f( f ) are in the relation : f(x in ) = 2f ( f ). a question mark (?) indicates an undefined state that depends on the previous state. immediately after a reset, timer 3 and timer 4 are connected in hardware. at this time, ff 16 is set in timer 3 and 07 16 is set to timer 4. timer 3 counts down with f(x in )/16, and reset state is released by the timer 4 overflow signal.
00 mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 48 00 16 port p0 direction register 00 16 00 16 (00e6 16 ) color register 0 crt control register crt port control register crt clock selection register a-d mode register cpu mode register processor status register 07 16 timer 12 mode register interrupt input polarity register interrupt request register 1 program counter timer 1 ff 16 07 16 port p1 direction register port p2 direction register 00 port p3 direction register (00c1 16 ) (00c3 16 ) (00c5 16 ) (00c7 16 ) color register 1 color register 2 color register 3 a-d control register timer 2 timer 3 timer 4 timer 34 mode register interrupt request register 2 interrupt control register 1 interrupt control register 2 (00e7 16 ) (00e8 16 ) (00e9 16 ) (00ea 16 ) (00ec 16 ) (00ed 16 ) (00ee 16 ) (00ef 16 ) (00f0 16 ) (00f1 16 ) (00f2 16 ) (00f3 16 ) (00f4 16 ) (00f5 16 ) (00f9 16 ) (00fb 16 ) (00fc 16 ) (00fd 16 ) (00fe 16 ) (ps) (pc h ) (pc l ) (00ff 16 ) ff 16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 contents of address ffff 16 contents of address fffe 16 1 address contents of register address contents of register note : the contents of all other registers and ram are undefined at reset, so set their initial values. ] : undefined : unused bit 0 0 00000 0000 0 0 0 00000 0 0 00 0 port p5 port p5 direction register port p6 000 0 (00ca 16 ) (00cb 16 ) (00cc 16 ) da-l register pwm output control register 1 00 16 00 16 horizontal register border selection register i 2 c status register i 2 c control register i 2 c clock control register serial i/o mode register vertical position register 1 character size register i 2 c address register pwm output control register 2 vertical position register 2 0 00 0 10 0 0 00 0 00 0 00 0 (00cf 16 ) (00d5 16 ) (00d6 16 ) (00d8 16 ) (00d9 16 ) (00da 16 ) (00db 16 ) (00dc 16 ) (00e0 16 ) (00e1 16 ) (00e2 16 ) (00e4 16 ) (00e5 16 ) ] 0 port p4 (00c8 16 ) ]] ] port p4 direction register (00c9 16 ) 0 port p6 direction register (00cd 16 ) 111 1 111 1 0 0 fig. 51. internal state of microcomputer at reset ]]]] ]]]]]] ] 00 16 00 16 000000 ]]]]]]] ]]]]]]] ]]] ] ]] ]] ]] ]] ] 0 0 00 0 0 0 0 0 0 0 0 00 0000 000 0 0000000 0000000 0000000 0000000
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 49 port p0 data bus direction register port latch ports p1 0 , p2, p3 0 , p3 1 data bus direction register port latch ports p4 0, p4 1 data bus direction register port latch s in , s clk ports p1 1 ?1 4 data bus direction register port latch i 2 c-bus clock i 2 c-bus data bsel0 bsel1 scl1, scl2, sda1, sda2 n-channel open-drain output cmos output ports p1 1 Cp1 4 notes 1: each port is also used as below: p1 1 : scl1 p1 2 : scl2 p1 3 : sda1 p1 4 : sda2 2: the output structure of p1 1 C p1 4 is n-channel open-drain output when they are used as multi-master i 2 c-bus inter face. n-channel open-drain output ports p4 0 , p4 1 note: each port is also used as below: p4 0 : s out ( /in )/a-d7 p4 1 : s clk /a-d6 cmos output ports p1 0 , p2, p3 0 , p3 1 n-channel open-drain output port p0 note: each port is also used as below: p0 0 Cp0 3 : pwm0Cpwm7 fig. 52. i/o pin block diagram (1)
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 50 internal circuit d-a, r, g, b, out1 , out2 data bus ports p1 5 , p3 2 Cp3 7 , p4 2 tim2, tim3, int1, int2, s in , int3 data bus por ts p1 6 , p1 7 data bus ports p6 0 Cp6 3 port latch h sync , v sync internal circuit fig. 53. i/o pin block diagram (2) ports p1 6 , p1 7 note: each port is also used as below: p1 6 : a-d2 p1 7 : a-d3 schmidt input ports p1 5 , p3 2 Cp3 7 , p4 2 note: each port is also used as below: p1 5 : int3/a-d1 p3 2 : tim2 p3 3 : tim3 p3 4 : int1 p3 5 : int2/a-d4 p3 6 : osc1 p3 7 : osc2 p4 2 : s in /a-d5 n-channel open-drain output ports p6 0 Cp6 3 note: each port is also used as below: p6 0 Cp6 3 : pwm0Cpwm3 cmos output d-a, r, g, b, out1, out2 note: each pin is also used as below: r : p5 2 g : p5 3 b : p5 4 out1 : p5 5 out2 : p1 0 /a-d8 schmidt input h sync , v sync
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 51 clock generating circuit the built-in clock generating circuit is shown in figure 56. when the stp instruction is executed, the internal clock f stops at h level. at the same time, timers 3 and 4 are connected in hardware and ff 16 is set in the timer 3, 07 16 is set in the timer 4. select f(x in )/16 as the timer 3 count source (set bit 0 of the timer 34 mode register to 0 before the execution of the stp instruction). and besides, set the timer 3 and timer 4 interrupt enable bits to disabled (0) before ex- ecution of the stp instruction. the oscillator restarts when external interrupt is accepted, however, the internal clock f keeps its h level until timer 4 overflows. because this allows time for oscillation stabi- lizing when a ceramic resonator or a quartz-crystal oscillator is used. when the wit instruction is executed, the internal clock f stops in the h level but the oscillator continues running. this wait state is released when an interrupt is accepted (note). since the oscillator does not stop, the next instruction can be executed at once. when returning from the stop or the wait state, to accept an interrupt, set the corresponding interrupt enable bit to 1 before executing the stp or the wit instructions. the circuit example using a ceramic resonator (or a quartz-crystal oscillator) is shown in figure 54. use the circuit constants in accor- dance with the resonator manufactures recommended values. the circuit example with external clock input is shown in figure 55. input the clock to the x in pin, and open the x out pin. note: in the wait mode, the following interrupts are invalid. (1) v sync interrupt (2) crt interrupt (3) f(x in )/4096 interrupt (4) timer 1 interrupt using f(x in )/4096 as count source (5) timer 2 interrupt using p2 4 /tim2 pin input as count source (6) timer 3 interrupt using p2 3 /tim3 pin input as count source (7) timer 4 interrupt using f(x in )/2 as count source (8) multi-master i 2 c-bus interface interrupt fig. 56. clock generating circuit block diagram fig. 55. external clock input circuit example fig. 54. ceramic resonator circuit example x in M37212M6-XXXSP 24 vcc vss external oscillation circuit x in x out c in M37212M6-XXXSP c out 25 24 interrupt request interrupt disable flag i reset sq r stp instruction sq r wit instruction s q r stp instruction reset internal clock 1/2 1/8 timer 3 timer 4 x out x in t34m 0 t34m 2 selection gate : connected to black colored side at reset. t34m : timer 34 mode register
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 52 display oscillation circuit the crt display clock oscillation circuit has a built-in clock oscilla- tion circuits, so that a clock for crt display can be obtained simply by connecting an lc, an rc, a ceramic resonator or a quartz-crystal oscillator circuit across the pins osc 1 and osc 2. select the clock for display with bits 0 and 1 of the crt clock selection register (ad- dress 00ed 16 ). addressing mode the memory access is reinforced with 17 kinds of addressing modes. refer to the series 740 users manual for details. machine instructions there are 71 machine instructions. refer to the series 740 users manual for details. programming notes (1) the divide ratio of the timer is 1/(n+1). (2) even though the bbc and bbs instructions are executed imme- diately after the interrupt request bits are modified (by the pro- gram), those instructions are only valid for the contents before the modification. at least one instruction cycle is needed (such as an nop) between the modification of the interrupt request bits and the execution of the bbc and bbs instructions. (3) after the adc and sbc instructions are executed (in decimal mode), one instruction cycle (such as an nop) is needed before the sec, clc, or cld instruction is executed. (4) an nop instruction is needed immediately after the execution of a plp instruction. (5) in order to avoid noise and latch-up, connect a bypass capacitor ( ? 0.1 m f) directly between the v cc pinCv ss pin and the v cc pinC cnv ss pin using a thick wire. auto-clear circuit when power source is supplied, the auto-clear function can be per- ______ formed by connecting the following circuit to the reset pin. fig. 58. auto-clear circuit example fig. 57. display oscillation circuit osc2 osc1 l c1 c2 reset vss vcc circuit example 1 reset vss vcc circuit example 2 note : make the level change from ??to ??at the point at which the power source voltage exceeds the specified voltage.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 53 data required for mask orders the following are necessary when ordering a mask rom produc- tion: (1) mask rom order confirmation form (2) mark specification form (3) data to be written to rom, in eprom form (32-pin dip type 27c101, three identical copies) prom programming method the built-in prom of the one time prom version (blank) and built- in eprom version can be read or programmed with a general-pur- pose prom programmer using a special programming adapter. the prom of the one time prom version (blank) is not tested or screened in the assembly process and following processes. to en- sure proper operation after programming, the procedure shown in figure 59 is recommended to verify programming. fig. 59. programming and testing of one time prom version programming with prom programmer screening (caution) (150? for 40 hours) verification with prom programmer functional check in target device caution : the screening temperature is far higher than the storage temperature. never expose to 150? exceeding 100 hours. product m37212ef m37212effp name of programing adapter pca7406 pca7420
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 54 power source voltage (note 4), during cpu, crt operation power source voltage h input voltage p0 0 Cp0 7 ,p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 , ______ s in , s clk , h sync , v sync , reset, x in , osc1, tim2, tim3, int1, int2, int3 h input voltage scl1, scl2, sda1, sda2 (when using i 2 c-bus) l input voltage p0 0 Cp0 7 ,p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7, p4 0C p4 2 l input voltage scl1, scl2, sda1, sda2 (when using i 2 c-bus) l input voltage ______ h sync , v sync , reset,tim2, tim3, int1, int2, int3, x in , osc1, s in , s clk h average output current (note 1) r, g, b, out1, d-a, p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 , p3 1 l average output current (note 2) r, g, b, out1, d-a, p1 0 , p2 0 Cp2 3 , p3 0 , p3 1 , p4 0 , p4 1 l average output current (note 2) p1 1 Cp1 4 l average output current (note 2) p0 0 Cp0 7, p6 0C p6 3 l average output current (note 3) p2 4 Cp2 7 oscillation frequency (for cpu operation) (note 5) x in oscillation frequency (for crt display) (note 5) osc1 input frequency tim2, tim3 input frequency s clk input frequency scl1, scl2 v v v v v v v ma ma ma ma ma mhz mhz khz mhz khz absolute maximum ratings power source voltage v cc input voltage cnv ss input voltage p0 0 Cp0 7 , p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 Cp3 7 , p4 0 Cp4 2 , osc1, ______ x in , h sync , v sync , reset output voltage p1 0 Cp1 4 , p2 0 -p2 7 , p3 0 , p3 1 , p4 0 , p4 1 , r, g, b, out1, d-a, x out , osc2 output voltage p0 0 Cp0 7, p6 0C p6 3 circuit current r, g, b, out1, p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 , p3 1 , d-a circuit current r, g, b, out1, p0 6 , p0 7 , p1 0 , p1 5 Cp1 7 , p2 0 Cp2 3 , p3 0 Cp3 2 , d-a circuit current p1 1 Cp1 4 circuit current p0 0 Cp0 7, p6 0C p6 3 circuit current p2 4 Cp2 7 power dissipation operating temperature storage temperature symbol v cc v i v i v o v o i oh i ol1 i ol2 i ol3 i ol4 p d t opr t stg conditions all voltages are based on v ss . output transistors are cut off. t a = 25 c ratings C0.3 to 6 C0.3 to 6 C0.3 to v cc + 0.3 C0.3 to v cc + 0.3 C0.3 to 13 0 to 1 (note 1) 0 to 2 (note 2) 0 to 6 (note 2) 0 to 1 (note 2) 0 to 10 (note 3) 550 C10 to 70 C40 to 125 unit v v v v v ma ma ma ma ma mw c c parameter max. 5.5 0 v cc v cc 0.4 v cc 0.3 v cc 0.2 v cc 1 2 6 1 10 8.1 8.0 100 2 400 v cc v ss v ih1 v ih2 v il1 v il2 v il3 i oh i ol1 i ol2 i ol3 i ol4 f cpu f crt f hs1 f hs2 f hs3 recommended operating conditions (t a = C10 c to 70 c, v cc = 5 v 10 %, unless otherwise noted) min. 4.5 0 0.8v cc 0.7v cc 0 0 0 7.9 5.0 typ. 5.0 0 8.0 limits symbol parameter unit notes 1: the total current that flows out of the ic must be 20 ma (max.). 2: the total input current to ic (i ol1 + i ol2 + i ol3 ) must be 30 ma or less. 3: the total average input current for ports p2 4 Cp2 7 to ic must be 20 ma or less. 4: connect 0.1 m f or more capacitor externally across the power source pins v cc Cv ss so as to reduce power source noise. also connect 0.1 m f or more capacitor externally across the pins v cc Ccnv ss . 5: use a quartz-crystal oscillator or a ceramic resonator for the cpu oscillation circuit.
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 55 power source current h output voltage r, g, b, out1, d-a, p1 0 Cp1 4 , p2 0 Cp2 7 , p3 0 , p3 1 l output voltage r, g, b, out1, d-a, p1 0 , p2 0 Cp2 3 , p3 0 , p3 1, p4 0, p4 1 l output voltage p2 4 Cp2 7 l output voltage p1 1 Cp1 4 l output voltage p0 0 Cp0 7, p6 0C p6 3 hysteresis ______ reset hysteresis (note) h sync , v sync , tim2, tim3, int1, int2, int3, scl1, scl2, sda1, sda2, s in , s clk h input leak current ______ reset, p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 , p4 0 Cp4 2 , h sync , v sync l input leak current ______ reset, p0 0 Cp0 7 , p1 0 Cp1 7 , p2 0 Cp2 7 , p3 0 Cp3 7 , p4 0 Cp4 2 , p6 0 Cp6 3 , h sync , v sync h output leak current p0 0 Cp0 7, p6 0 Cp6 3 i 2 c-busbus switch connection resistor (between scl1 and scl2, sda1 and sda2) max. 20 40 40 60 300 0.4 3.0 0.4 0.6 0.4 0.7 1.3 5 5 10 130 i cc v oh v ol v t+ Cv tC i izh i izl i ozh r bs crt off crt on crt off crt on v cc = 5.5 v, f(x in ) = 4 mhz v cc = 5.5 v, f(x in ) = 8 mhz v cc = 5.5 v, f(x in ) = 0 v cc = 4.5 v i oh = C0.5 ma v cc = 4.5 v i ol = 0.5 ma v cc = 4.5 v i ol = 10.0 ma v cc = 4.5 v v cc = 4.5 v i ol = 0.5 ma v cc = 5.0 v v cc = 5.0 v v cc = 5.5 v v i = 5.5 v v cc = 5.5 v v i = 0 v v cc = 5.5 v v o = 12 v v cc = 4.5 v ma m a v v v m a m a m a w typ. 10 20 20 30 0.5 0.5 electric characteristics (v cc = 5 v 10 %, v ss = 0 v, f(x in ) = 8 mhz, t a = C10 c to 70 c, unless otherwise noted) limits min. 2.4 symbol parameter test conditions unit i ol = 3 ma i ol = 6 ma note: p1 5 , p3 2 , p3 3 , p3 4 , p3 5 have the hysteresis when these pins are used as interrupt input pins or timer input pins. p4 0 Cp4 2 have the hysteresis when these pins are used as serial i/o pins. p1 1 Cp1 4 have the hysteresis when these pins are used as multi-master i 2 c-bus interface pins. system operation stop mode
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 56 bits lsb max. 6 2 min. 0 resolution absolute accuracy a-d comparator characteristics (v cc = 5 v 10 %, v ss = 0 v, f(x in ) = 8 mhz, t a = 25 c, unless otherwise noted) limits typ. unit test conditions parameter symbol 1 multi-master i 2 c-bus bus line characteristics bus free time hold time for start condition l period of scl clock rising time of both scl and sda signals data hold time h period of scl clock falling time of both scl and sda signals data set-up time set-up time for repeated start condition set-up time for stop condition t buf t hd:sta t low t r t hd:dat t high t f t su:dat t su:sta t su:sto min. 4.7 4.0 4.7 0 4.0 250 4.7 4.0 max. 1000 300 min. 1.3 0.6 1.3 20+0.1c b 0 0.6 20+0.1c b 100 0.6 0.6 max. 300 0.9 300 m s m s m s ns m s m s ns ns m s m s unit standard clock mode high-speed clock mode parameter symbol note: c b = total capacitance of 1 bus line fig. 60. definition diagram of timing on multi-master i 2 c-bus note: when v cc = 5 v, 1 lsb = 5/64 v. sda scl p t buf s t hd : sta t low t r t hd : dat t high t f t su : dat t su : sta sr p t su : sto t hd : sta
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 57 package outline 80p6n-a 52p4b
mitsubishi microcomputers m37212m4-xxxsp , M37212M6-XXXSP/fp m37212ef-xxxsp/fp , m37212efsp/fp single-chip 8-bit cmos micr ocomputer f or v ol t a ge synthesizer and on-screen displa y contr oller 58 740family mask rom confirmation form single-chip microcomputer m37212m4-xxxsp mitsubishi electric
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 59
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 60
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 61 740family mask rom confirmation form mitsubishi electric single-chip microcomputer M37212M6-XXXSP/fp
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 62
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 63
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 64 52p4b (52-pin shrink dip) mark specification form
mitsubishi microcomputers m37212m4-xxxsp, M37212M6-XXXSP/fp m37212ef-xxxsp/fp, m37212efsp/fp single-chip 8-bit cmos microcomputer for voltage synthesizer and on-screen display controller 65 80p6n (80-pin qfp) mark specification form
? 1997 mitsubishi electric corp. new publication, effective nov. 1997. specifications subject to change without notice. notes regarding these materials ? these materials are intended as a reference to assist our customers in the selection of the mitsubishi semiconductor product b est suited to the customers application; they do not convey any license under any intellectual property rights, or any other rights, belonging to mitsubishi electric corporation or a third party. ? mitsubishi electric corporation assumes no responsibility for any damage, or infringement of any third-partys rights, origina ting in the use of any product data, diagrams, charts or circuit application examples contained in these materials. ? all information contained in these materials, including product data, diagrams and charts, represent information on products a t the time of publication of these materials, and are subject to change by mitsubishi electric corporation without notice due to product improvements or other reasons. it is therefore recommended that customers co ntact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for the latest product information before purchasing a product listed herein. ? mitsubishi electric corporation semiconductors are not designed or manufactured for use in a device or system that is used und er circumstances in which human life is potentially at stake. please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor when considering the use of a pro duct contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. ? the prior written approval of mitsubishi electric corporation is necessary to reprint or reproduce in whole or in part these m aterials. ? if these products or technologies are subject to the japanese export control restrictions, they must be exported under a licen se from the japanese government and cannot be imported into a country other than the approved destination. any diversion or reexport contrary to the export control laws and regulations of japan and/or the country of destination is pro hibited. ? please contact mitsubishi electric corporation or an authorized mitsubishi semiconductor product distributor for further detai ls on these materials or the products contained therein. keep safety first in your circuit designs! ? mitsubishi electric corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. trouble with semiconductors may lead to personal injury, fire or property damage. remember to give due consideration to safety when making y our circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap.
rev. rev. no. date 1.0 first edition 9811303 1.1 correct memory address (p8, figure 2). 980731 correct note (p51) m37212m4-xxxsp, M37212M6-XXXSP/fp, m37212ef-xxxsp/fp, m37212efsp/fp data sheet (1/1) revision description revision description list


▲Up To Search▲   

 
Price & Availability of M37212M6-XXXSP

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X